]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "KVM: x86: WARN and reject loading KVM if NX is supported but not enabled"
authorSean Christopherson <seanjc@google.com>
Fri, 25 Jun 2021 00:18:53 +0000 (17:18 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Jul 2021 16:17:55 +0000 (12:17 -0400)
commiteceb07ef178465c41b8449054c606360f4f605b0
tree8139fc5824bfc835fd2be2caa3a8022fa4d0fc52
parent4642350ceaa168b42e604c5984a3a5a6c631f61a
Revert "KVM: x86: WARN and reject loading KVM if NX is supported but not enabled"

Let KVM load if EFER.NX=0 even if NX is supported, the analysis and
testing (or lack thereof) for the non-PAE host case was garbage.

If the kernel won't be using PAE paging, .Ldefault_entry in head_32.S
skips over the entire EFER sequence.  Hopefully that can be changed in
the future to allow KVM to require EFER.NX, but the motivation behind
KVM's requirement isn't yet merged.  Reverting and revisiting the mess
at a later date is by far the safest approach.

This reverts commit 52955a313c407a0271007641df5f7c1dde628e4d.

Fixes: 52955a313c40 ("KVM: x86: WARN and reject loading KVM if NX is supported but not enabled")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210625001853.318148-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c