]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Pass emulation type to can_emulate_instruction()
authorSean Christopherson <seanjc@google.com>
Thu, 20 Jan 2022 01:07:15 +0000 (01:07 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Jan 2022 17:15:00 +0000 (12:15 -0500)
commite23c0bb2f02e0ccbda5aa15b324d40b58aa50229
tree20da4dddc302dd9da4248e7f79a573e50cf43353
parent7e53cc55d19da6007ba203a6ca4512937f6914bd
KVM: x86: Pass emulation type to can_emulate_instruction()

Pass the emulation type to kvm_x86_ops.can_emulate_insutrction() so that
a future commit can harden KVM's SEV support to WARN on emulation
scenarios that should never happen.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Message-Id: <20220120010719.711476-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c