|
@@ -637,11 +637,13 @@ static void skip_emulated_instruction(struct kvm_vcpu *vcpu)
|
|
|
svm_set_interrupt_shadow(vcpu, 0);
|
|
|
}
|
|
|
|
|
|
-static void svm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr,
|
|
|
- bool has_error_code, u32 error_code,
|
|
|
- bool reinject)
|
|
|
+static void svm_queue_exception(struct kvm_vcpu *vcpu)
|
|
|
{
|
|
|
struct vcpu_svm *svm = to_svm(vcpu);
|
|
|
+ unsigned nr = vcpu->arch.exception.nr;
|
|
|
+ bool has_error_code = vcpu->arch.exception.has_error_code;
|
|
|
+ bool reinject = vcpu->arch.exception.reinject;
|
|
|
+ u32 error_code = vcpu->arch.exception.error_code;
|
|
|
|
|
|
/*
|
|
|
* If we are within a nested VM we'd better #VMEXIT and let the guest
|