diff options
author | Ladi Prosek <lprosek@redhat.com> | 2017-10-11 16:54:41 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-10-12 14:01:55 +0200 |
commit | 72d7b374b14d67e973bce476e4a75552478cc42d (patch) | |
tree | 6124240991e78d9e00afd6328e9650523bfe8669 /arch/x86/include/asm/kvm_host.h | |
parent | 0234bf885236a41ef05376039f2a8ebe7028a388 (diff) | |
download | linux-72d7b374b14d67e973bce476e4a75552478cc42d.tar.gz linux-72d7b374b14d67e973bce476e4a75552478cc42d.tar.bz2 linux-72d7b374b14d67e973bce476e4a75552478cc42d.zip |
KVM: x86: introduce ISA specific smi_allowed callback
Similar to NMI, there may be ISA specific reasons why an SMI cannot be
injected into the guest. This commit adds a new smi_allowed callback to
be implemented in following commits.
Signed-off-by: Ladi Prosek <lprosek@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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 23a9a5339f3f..411ddbbaeabf 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -1062,6 +1062,7 @@ struct kvm_x86_ops { void (*setup_mce)(struct kvm_vcpu *vcpu); + int (*smi_allowed)(struct kvm_vcpu *vcpu); int (*pre_enter_smm)(struct kvm_vcpu *vcpu, char *smstate); int (*pre_leave_smm)(struct kvm_vcpu *vcpu, u64 smbase); }; |