Skip to content

Commit 743f177

Browse files
sean-jcbonzini
authored andcommitted
KVM: VMX: Dump VMCS on unexpected #VE
Dump the VMCS on an unexpected #VE, otherwise it's practically impossible to figure out why the #VE occurred. Signed-off-by: Sean Christopherson <[email protected]> Message-ID: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 837d557 commit 743f177

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/x86/kvm/vmx/vmx.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5217,8 +5217,10 @@ static int handle_exception_nmi(struct kvm_vcpu *vcpu)
52175217
if (is_invalid_opcode(intr_info))
52185218
return handle_ud(vcpu);
52195219

5220-
if (WARN_ON_ONCE(is_ve_fault(intr_info)))
5220+
if (WARN_ON_ONCE(is_ve_fault(intr_info))) {
5221+
dump_vmcs(vcpu);
52215222
return 1;
5223+
}
52225224

52235225
error_code = 0;
52245226
if (intr_info & INTR_INFO_DELIVER_CODE_MASK)

0 commit comments

Comments
 (0)