Skip to content

Commit

Permalink
KVM: VMX: dump VMCS on failed entry
Browse files Browse the repository at this point in the history
This is useful for debugging, and is ratelimited nowadays.

Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Jul 20, 2019
1 parent 6fc3977 commit 3b20e03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/kvm/vmx/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3b20e03

Please sign in to comment.