aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 4c98d362e3e4..cde756a02b1a 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -637,11 +637,13 @@ static void skip_emulated_instruction(struct kvm_vcpu *vcpu)
637 svm_set_interrupt_shadow(vcpu, 0); 637 svm_set_interrupt_shadow(vcpu, 0);
638} 638}
639 639
640static void svm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr, 640static void svm_queue_exception(struct kvm_vcpu *vcpu)
641 bool has_error_code, u32 error_code,
642 bool reinject)
643{ 641{
644 struct vcpu_svm *svm = to_svm(vcpu); 642 struct vcpu_svm *svm = to_svm(vcpu);
643 unsigned nr = vcpu->arch.exception.nr;
644 bool has_error_code = vcpu->arch.exception.has_error_code;
645 bool reinject = vcpu->arch.exception.reinject;
646 u32 error_code = vcpu->arch.exception.error_code;
645 647
646 /* 648 /*
647 * If we are within a nested VM we'd better #VMEXIT and let the guest 649 * If we are within a nested VM we'd better #VMEXIT and let the guest