Skip to content
Commit a9fa7cb6 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 88c604b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment