diff options
author | Oliver Upton <oliver.upton@linux.dev> | 2024-04-26 22:40:30 +0000 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2024-04-29 23:39:32 -0700 |
commit | 1e2f72765abfde7e94384789638eac7f6e7bd419 (patch) | |
tree | 459d2fb842b9c2829516f0ef7e3639fb4c7883fd | |
parent | 6e7d589e5fd36043c597f5c64acb2cf8bf06b2b2 (diff) | |
download | linux-kvm-arm64/stage2-unmap-improvements.tar.gz |
KVM: arm64: Dump the context of an unexpected stage-2 permission faultkvm-arm64/stage2-unmap-improvements
It seems useful to add some context if a VM takes an unexpected stage-2
permission fault. I'm sure _someone_ might need it...
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
-rw-r--r-- | arch/arm64/kvm/mmu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c index 1c65e9d918f802..ad721a885e595c 100644 --- a/arch/arm64/kvm/mmu.c +++ b/arch/arm64/kvm/mmu.c @@ -1404,7 +1404,8 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa, VM_BUG_ON(write_fault && exec_fault); if (fault_is_perm && !write_fault && !exec_fault) { - kvm_err("Unexpected L2 read permission error\n"); + kvm_err("Unexpected stage-2 permission error. esr_el2: %llx, ipa: %llx\n", + kvm_vcpu_get_esr(vcpu), fault_ipa); return -EFAULT; } |