aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-02-10 07:42:22 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2022-04-29 12:49:58 -0400
commit4d25502aa12ef1fb01e599cbfd341a8d436f4b8b (patch)
tree7a824c93ae5f937f7b1e0dbc6b3da5cbc05a1329 /arch/x86/include/asm/kvm_host.h
parentKVM: x86/mmu: replace shadow_root_level with root_role.level (diff)
downloadlinux-dev-4d25502aa12ef1fb01e599cbfd341a8d436f4b8b.tar.xz
linux-dev-4d25502aa12ef1fb01e599cbfd341a8d436f4b8b.zip
KVM: x86/mmu: replace root_level with cpu_role.base.level
Remove another duplicate field of struct kvm_mmu. This time it's the root level for page table walking; the separate field is always initialized as cpu_role.base.level, so its users can look up the CPU mode directly instead. 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.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 35056341799d..aea39fe03a99 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -438,7 +438,6 @@ struct kvm_mmu {
struct kvm_mmu_root_info root;
union kvm_cpu_role cpu_role;
union kvm_mmu_page_role root_role;
- u8 root_level;
bool direct_map;
/*