Home
last modified time | relevance | path

Searched hist:d6174299365ddbbf491620c0b8c5ca1a6ef2eea5 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/x86/kvm/
H A Dmmu.hdiff d6174299365ddbbf491620c0b8c5ca1a6ef2eea5 Wed Feb 09 03:56:05 CST 2022 Paolo Bonzini <pbonzini@redhat.com> KVM: x86: Reinitialize context if host userspace toggles EFER.LME

While the guest runs, EFER.LME cannot change unless CR0.PG is clear, and
therefore EFER.NX is the only bit that can affect the MMU role. However,
set_efer accepts a host-initiated change to EFER.LME even with CR0.PG=1.
In that case, the MMU has to be reset.

Fixes: 11988499e62b ("KVM: x86: Skip EFER vs. guest CPUID checks for host-initiated writes")
Cc: stable@vger.kernel.org
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
H A Dx86.cdiff d6174299365ddbbf491620c0b8c5ca1a6ef2eea5 Wed Feb 09 03:56:05 CST 2022 Paolo Bonzini <pbonzini@redhat.com> KVM: x86: Reinitialize context if host userspace toggles EFER.LME

While the guest runs, EFER.LME cannot change unless CR0.PG is clear, and
therefore EFER.NX is the only bit that can affect the MMU role. However,
set_efer accepts a host-initiated change to EFER.LME even with CR0.PG=1.
In that case, the MMU has to be reset.

Fixes: 11988499e62b ("KVM: x86: Skip EFER vs. guest CPUID checks for host-initiated writes")
Cc: stable@vger.kernel.org
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>