diff options
author | Wanpeng Li <wanpeng.li@hotmail.com> | 2017-07-13 18:30:39 -0700 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2017-07-14 14:24:28 +0200 |
commit | cfcd20e5caad6ba552978c16ed8bed7edb0143cf (patch) | |
tree | 0c16071fdf5bc12870cb7496ed13d8315bac8568 /arch/x86/kvm/x86.c | |
parent | efc479e6900c22bad9a2b649d13405ed9cde2d53 (diff) | |
download | linux-cfcd20e5caad6ba552978c16ed8bed7edb0143cf.tar.gz linux-cfcd20e5caad6ba552978c16ed8bed7edb0143cf.tar.bz2 linux-cfcd20e5caad6ba552978c16ed8bed7edb0143cf.zip |
KVM: x86: Simplify kvm_x86_ops->queue_exception parameter list
This patch removes all arguments except the first in
kvm_x86_ops->queue_exception since they can extract the arguments from
vcpu->arch.exception themselves.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 4f41c5222ecd..e149c92476f1 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -6356,10 +6356,7 @@ static int inject_pending_event(struct kvm_vcpu *vcpu, bool req_int_win) kvm_update_dr7(vcpu); } - kvm_x86_ops->queue_exception(vcpu, vcpu->arch.exception.nr, - vcpu->arch.exception.has_error_code, - vcpu->arch.exception.error_code, - vcpu->arch.exception.reinject); + kvm_x86_ops->queue_exception(vcpu); return 0; } |