]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Move device mapping management into kvm_s2_fault_pin_pfn()
authorMarc Zyngier <maz@kernel.org>
Sat, 14 Mar 2026 09:44:36 +0000 (09:44 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 28 Mar 2026 11:29:41 +0000 (11:29 +0000)
commite314a4dbdb8b29b7e9a69afb8831a15a6d15c1ed
tree3e151a97ace808f454777b5ce336bff6604ed883
parent29a5681843a52570ca9597bf355be33fe8753eb0
KVM: arm64: Move device mapping management into kvm_s2_fault_pin_pfn()

Attributes computed for devices are computed very late in the fault
handling process, meanning they are mutable for that long.

Introduce both 'device' and 'map_non_cacheable' attributes to the
vma_info structure, allowing that information to be set in stone
earlier, in kvm_s2_fault_pin_pfn().

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