Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

KVM: arm64: nv: Inject a SEA if failed to read the descriptor

Failure to read the descriptor (because it is outside of a memslot) should
result in a SEA being injected in the guest.

Suggested-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/86ms1m9lp3.wl-maz@kernel.org
Signed-off-by: Zenghui Yu (Huawei) <zenghui.yu@linux.dev>
Link: https://patch.msgid.link/20260225173515.20490-4-zenghui.yu@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>

authored by

Zenghui Yu (Huawei) and committed by
Marc Zyngier
eb54fa10 99a33937

+3 -1
+3 -1
arch/arm64/kvm/nested.c
··· 296 296 297 297 paddr = base_addr | index; 298 298 ret = read_guest_s2_desc(vcpu, paddr, &desc, wi); 299 - if (ret < 0) 299 + if (ret < 0) { 300 + out->esr = ESR_ELx_FSC_SEA_TTW(level); 300 301 return ret; 302 + } 301 303 302 304 new_desc = desc; 303 305