提交 80f0e95d 编写于 作者: R Radim Krčmář 提交者: Paolo Bonzini

KVM: vmx: pass error code with internal error #2

Exposing the on-stack error code with internal error is cheap and
potentially useful.
Signed-off-by: NRadim Krčmář <rkrcmar@redhat.com>
Message-Id: <1428001865-32280-1-git-send-email-rkrcmar@redhat.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 80f7fdb1
...@@ -5089,9 +5089,10 @@ static int handle_exception(struct kvm_vcpu *vcpu) ...@@ -5089,9 +5089,10 @@ static int handle_exception(struct kvm_vcpu *vcpu)
!(is_page_fault(intr_info) && !(error_code & PFERR_RSVD_MASK))) { !(is_page_fault(intr_info) && !(error_code & PFERR_RSVD_MASK))) {
vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR; vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR;
vcpu->run->internal.suberror = KVM_INTERNAL_ERROR_SIMUL_EX; vcpu->run->internal.suberror = KVM_INTERNAL_ERROR_SIMUL_EX;
vcpu->run->internal.ndata = 2; vcpu->run->internal.ndata = 3;
vcpu->run->internal.data[0] = vect_info; vcpu->run->internal.data[0] = vect_info;
vcpu->run->internal.data[1] = intr_info; vcpu->run->internal.data[1] = intr_info;
vcpu->run->internal.data[2] = error_code;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册