diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-19 18:15:08 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-20 09:00:47 +0200 |
commit | 3b20e03a1066ab2056711166c1b41d421d1ff7b7 (patch) | |
tree | 74b83d4f1b15878751b02915bd98ea96a09004b7 | |
parent | 6fc3977ccc5d3c22e851f2dce2d3ce2a0a843842 (diff) | |
download | lwn-3b20e03a1066ab2056711166c1b41d421d1ff7b7.tar.gz lwn-3b20e03a1066ab2056711166c1b41d421d1ff7b7.zip |
KVM: VMX: dump VMCS on failed entry
This is useful for debugging, and is ratelimited nowadays.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | arch/x86/kvm/vmx/vmx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 280320f74db7..a279447eb75b 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -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); |