diff options
author | 2022-02-14 08:46:24 -0500 | |
---|---|---|
committer | 2022-04-29 12:49:56 -0400 | |
commit | 7a458f0e1ba150a6ea012171a43c4b947f1d825d (patch) | |
tree | d3c3bb4a32acd42ff8e080a45cd7e1fc88ddc644 /arch/x86/include/asm/kvm_host.h | |
parent | KVM: x86/mmu: store shadow EFER.NX in the MMU role (diff) | |
download | linux-dev-7a458f0e1ba150a6ea012171a43c4b947f1d825d.tar.xz linux-dev-7a458f0e1ba150a6ea012171a43c4b947f1d825d.zip |
KVM: x86/mmu: remove extended bits from mmu_role, rename field
mmu_role represents the role of the root of the page tables.
It does not need any extended bits, as those govern only KVM's
page table walking; the is_* functions used for page table
walking always use the CPU role.
ext.valid is not present anymore in the MMU role, but an
all-zero MMU role is impossible because the level field is
never zero in the MMU role. So just zap the whole mmu_role
in order to force invalidation after CPUID is updated.
While making this change, which requires touching almost every
occurrence of "mmu_role", rename it to "root_role".
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index a299236cfde5..c81221d03a1b 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -439,7 +439,7 @@ struct kvm_mmu { void (*invlpg)(struct kvm_vcpu *vcpu, gva_t gva, hpa_t root_hpa); struct kvm_mmu_root_info root; union kvm_mmu_role cpu_role; - union kvm_mmu_role mmu_role; + union kvm_mmu_page_role root_role; u8 root_level; u8 shadow_root_level; bool direct_map; |