• Tom Lendacky's avatar
    KVM: SVM: Do not report support for SMM for an SEV-ES guest · 5719455f
    Tom Lendacky authored
    SEV-ES guests do not currently support SMM. Update the has_emulated_msr()
    kvm_x86_ops function to take a struct kvm parameter so that the capability
    can be reported at a VM level.
    
    Since this op is also called during KVM initialization and before a struct
    kvm instance is available, comments will be added to each implementation
    of has_emulated_msr() to indicate the kvm parameter can be null.
    Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
    Message-Id: <75de5138e33b945d2fb17f81ae507bda381808e3.1607620209.git.thomas.lendacky@amd.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    5719455f
svm.c 118 KB