diff options
| author | Yosry Ahmed <yosry@kernel.org> | 2026-07-13 18:10:17 +0000 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-07-22 13:41:54 -0700 |
| commit | e62392bf39ebfdf60d1d082799397fe1cbf8dfc5 (patch) | |
| tree | 7ad41e4ea8ee3570a3b3b04f2981cc2f88ca3206 /scripts | |
| parent | 6ccc19d4c1eb97a994180af8afcab58422cb409d (diff) | |
| download | linux-e62392bf39ebfdf60d1d082799397fe1cbf8dfc5.tar.gz linux-e62392bf39ebfdf60d1d082799397fe1cbf8dfc5.zip | |
KVM: x86: Disallow EFER.LME and EFER.LMA if long mode is not supported
Remove EFER.LME and EFER.LMA from EFER reserved bits only if long mode
is actually supported. KVM does check long-mode support before allowing
the bits for guest writes and userspace writes through KVM_SET_SREGS*
(in __kvm_valid_efer()), but userspace writes through KVM_SET_MSRS only
check reserved bits.
In practice, this doesn't really matter. The true motiviation is getting
rid of the #ifdeffery when initializing efer_reserved_bits.
Cc: stable@vger.kernel.org
Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260713181020.2735367-3-yosry@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
