KVM: arm64: nv: Report addrsz fault at level 0 with a bad VTTBR.BADDR
authorZenghui Yu (Huawei) <zenghui.yu@linux.dev>
Wed, 25 Feb 2026 17:35:14 +0000 (01:35 +0800)
committerMarc Zyngier <maz@kernel.org>
Thu, 5 Mar 2026 15:46:48 +0000 (15:46 +0000)
commit99a339377f3c1bdf6edd5614d36893ab1806f9e6
tree783db0a94eb027340f267fd6eb7bb50ae57bcc59
parent4c2264ecdf39ddbdb62e37b156015aacf05d0dcb
KVM: arm64: nv: Report addrsz fault at level 0 with a bad VTTBR.BADDR

As per R_BFHQH,

" When an Address size fault is generated, the reported fault code
  indicates one of the following:

  If the fault was generated due to the TTBR_ELx used in the translation
  having nonzero address bits above the OA size, then a fault at level 0. "

Fix the reported Address size fault level as being 0 if the base address is
wrongly programmed by L1.

Fixes: 61e30b9eef7f ("KVM: arm64: nv: Implement nested Stage-2 page table walk logic")
Signed-off-by: Zenghui Yu (Huawei) <zenghui.yu@linux.dev>
Link: https://patch.msgid.link/20260225173515.20490-3-zenghui.yu@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/nested.c