KVM: VMX: dump VMCS on failed entry
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Jul 2019 16:15:08 +0000 (18:15 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 20 Jul 2019 07:00:47 +0000 (09:00 +0200)
This is useful for debugging, and is ratelimited nowadays.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c

index 280320f74db7b7ff87f24bb04edd809eb6b4e7eb..a279447eb75b6172ac470cd95e84b3e56f92ac90 100644 (file)
@@ -5829,6 +5829,7 @@ static int vmx_handle_exit(struct kvm_vcpu *vcpu)
        }
 
        if (unlikely(vmx->fail)) {
+               dump_vmcs();
                vcpu->run->exit_reason = KVM_EXIT_FAIL_ENTRY;
                vcpu->run->fail_entry.hardware_entry_failure_reason
                        = vmcs_read32(VM_INSTRUCTION_ERROR);