linux/arch/x86/kvm/mmu
Sean Christopherson 84c679f5f5 KVM: x86/mmu: Set CR4.PKE/LA57 in MMU role iff long mode is active
Don't set cr4_pke or cr4_la57 in the MMU role if long mode isn't active,
which is required for protection keys and 5-level paging to be fully
enabled.  Ignoring the bit avoids unnecessary reconfiguration on reuse,
and also means consumers of mmu_role don't need to manually check for
long mode.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622175739.3610207-28-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-06-24 18:00:41 -04:00
..
mmu_audit.c KVM: x86/mmu: Use '0' as the one and only value for an invalid PAE root 2021-03-15 04:44:07 -04:00
mmu_internal.h KVM: x86/mmu: Rename unsync helper and update related comments 2021-06-24 18:00:38 -04:00
mmu.c KVM: x86/mmu: Set CR4.PKE/LA57 in MMU role iff long mode is active 2021-06-24 18:00:41 -04:00
mmutrace.h KVM: x86/mmu: Rename "nxe" role bit to "efer_nx" for macro shenanigans 2021-06-24 18:00:41 -04:00
page_track.c KVM: x86: Support write protecting only large pages 2021-06-17 13:09:25 -04:00
paging_tmpl.h KVM: x86/mmu: Add accessors to query mmu_role bits 2021-06-24 18:00:41 -04:00
spte.c KVM: x86/mmu: Rename unsync helper and update related comments 2021-06-24 18:00:38 -04:00
spte.h KVM: x86/mmu: Use low available bits for removed SPTEs 2021-03-15 04:43:54 -04:00
tdp_iter.c KVM: x86/mmu: Store the address space ID in the TDP iterator 2021-03-16 14:16:34 -04:00
tdp_iter.h KVM: x86/mmu: Store the address space ID in the TDP iterator 2021-03-16 14:16:34 -04:00
tdp_mmu.c KVM: x86/mmu: Remove redundant root_hpa checks 2021-06-18 06:45:47 -04:00
tdp_mmu.h KVM: x86/mmu: Don't WARN on a NULL shadow page in TDP MMU check 2021-06-24 11:47:56 -04:00