KVM: x86/mmu: nested EPT cannot be used in SMM
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 12:30:08 +0000 (07:30 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Apr 2022 16:49:17 +0000 (12:49 -0400)
commitdaed87b8767c005cb2b385c80e265edf82a2f64b
tree428eaa9ab824c1c01e78c2959e1ea9ff5cfcfd1f
parent8b9e74bfbf8c7020498a9ea600bd4c0f1915134d
KVM: x86/mmu: nested EPT cannot be used in SMM

The role.base.smm flag is always zero when setting up shadow EPT,
do not bother copying it over from vcpu->arch.root_mmu.

Reviewed-by: David Matlack <dmatlack@google.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c