OSDN Git Service

KVM: x86/mmu: Use MMU's role to get EFER.NX during MMU configuration
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:57:22 +0000 (10:57 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 22:00:44 +0000 (18:00 -0400)
commit90599c280123618049af5cf375aae5b4e73bec03
treeee5091f83514260a3a9daaf06ddb2110e0fc1c06
parent84a16226046d1c9339a9be3f2b76ea2dc5677f02
KVM: x86/mmu: Use MMU's role to get EFER.NX during MMU configuration

Get the MMU's effective EFER.NX from its role instead of using the
one-off, dedicated flag.  This will allow dropping said flag in a
future commit.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622175739.3610207-38-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c