commit | a9fa7cb6aa997ba58294f1a07d402ce5855bafe1 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Thu Apr 23 11:02:36 2020 -0400 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Wed May 13 12:14:31 2020 -0400 |
tree | 2c1b49be8347793f84747492bdde4c7e3aea3814 | |
parent | 88c604b66eb6a74841cd40f5bdf639112ad69115 [diff] |
KVM: x86: replace is_smm checks with kvm_x86_ops.smi_allowed Do not hardcode is_smm so that all the architectural conditions for blocking SMIs are listed in a single place. Well, in two places because this introduces some code duplication between Intel and AMD. This ensures that nested SVM obeys GIF in kvm_vcpu_has_events. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>