On Mon, May 14, 2012 at 4:05 PM, Marc Zyngier <marc.zyngier at arm.com> wrote: > 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; > ? ? ? ?} > ack Thanks, Christoffer