]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Restrict the scope of the 'writable' attribute
authorMarc Zyngier <maz@kernel.org>
Mon, 9 Mar 2026 15:35:27 +0000 (15:35 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 28 Mar 2026 11:29:41 +0000 (11:29 +0000)
commit08abf09f4d763565ee9ed084401b7ac92f8b4952
treef2fb3d5c8a51d53caad04c7fd57f5bc81506db26
parent18e1312879db0af5bfd1b1a8b6771d314ccd3ca9
KVM: arm64: Restrict the scope of the 'writable' attribute

The 'writable' field is ambiguous, and indicates multiple things:

- whether the underlying memslot is writable

- whether we are resolving the fault with writable attributes

Add a new field to kvm_s2_fault_vma_info (map_writable) to indicate
the former condition, and have local writable variables to track
the latter.

Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/mmu.c