[Android-virt] [PATCH 3/3] ARM: KVM: Report more details about the unsupported fault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Before returning an error when getting an unhandled fault, display
the complete EC and DFSC fields. This is very useful when debugging
mapping problems.

Signed-off-by: Marc Zyngier <marc.zyngier at arm.com>
---
 arch/arm/kvm/mmu.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c
index 5353ad4..8375aed 100644
--- a/arch/arm/kvm/mmu.c
+++ b/arch/arm/kvm/mmu.c
@@ -576,8 +576,8 @@ int kvm_handle_guest_abort(struct kvm_vcpu *vcpu, struct kvm_run *run)
 	/* Check that the second stage fault is a translation fault */
 	fault_status = vcpu->arch.hsr & HSR_ABT_FS;
 	if ((fault_status & 0x3c) != 0x4) {
-		kvm_err("Unsupported fault status: %lx\n",
-				fault_status & 0x3c);
+		kvm_err("Unsupported fault status: EC=%lx DFCS=%lx\n",
+			hsr_ec, fault_status);
 		return -EFAULT;
 	}
 
-- 
1.7.7.1





[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux