Commit 3b20e03a authored by Paolo Bonzini's avatar Paolo Bonzini

KVM: VMX: dump VMCS on failed entry

This is useful for debugging, and is ratelimited nowadays.
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 6fc3977c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment