]> Gentwo Git Trees - linux/.git/commit
KVM: arm64: Populate level on S1PTW SEA injection
authorMarc Zyngier <maz@kernel.org>
Mon, 25 Aug 2025 12:13:56 +0000 (13:13 +0100)
committerMarc Zyngier <maz@kernel.org>
Sat, 20 Sep 2025 10:05:14 +0000 (11:05 +0100)
commit50f77dc87f133b09db44a5bbfdd64b1ca83a8d8e
tree3880d00b8dd0358c381af00b9f006df4c9d5fef1
parentb8e625167a321138f83b1f6c99cf25d1290cb04e
KVM: arm64: Populate level on S1PTW SEA injection

Our fault injection mechanism is mildly primitive, and doesn't
really implement the architecture when it comes to reporting
the level of a failing S1 PTW (we blindly report a SEA outside
of a PTW).

Now that we can walk the S1 page tables and look for a particular
IPA in the descriptors, it is pretty easy to improve the SEA
injection code.

Note that we only do it for AArch64 guests, and that 32bit guests
are left to their own device (oddly enough, I don't fancy writing
a 32bit PTW...).

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/inject_fault.c