diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2020-02-18 15:29:42 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-16 17:57:50 +0100 |
commit | 21f1b8f29ea5b2301af7f2cc41a20b7b87a22bec (patch) | |
tree | 23a175ef0bf00600c09327184a1b7721d72fb47b /arch/x86/include/asm/kvm_host.h | |
parent | 2e3bb4d886c72c0d5336a957ed66882e08f5c14b (diff) | |
download | lwn-21f1b8f29ea5b2301af7f2cc41a20b7b87a22bec.tar.gz lwn-21f1b8f29ea5b2301af7f2cc41a20b7b87a22bec.zip |
KVM: x86: Explicitly pass an exception struct to check_intercept
Explicitly pass an exception struct when checking for intercept from
the emulator, which eliminates the last reference to arch.emulate_ctxt
in vendor specific code.
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 316ec6cf532b..af4264498554 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -1170,7 +1170,8 @@ struct kvm_x86_ops { int (*check_intercept)(struct kvm_vcpu *vcpu, struct x86_instruction_info *info, - enum x86_intercept_stage stage); + enum x86_intercept_stage stage, + struct x86_exception *exception); void (*handle_exit_irqoff)(struct kvm_vcpu *vcpu, enum exit_fastpath_completion *exit_fastpath); bool (*mpx_supported)(void); |