diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-02-10 08:00:56 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-29 12:49:59 -0400 |
commit | 347a0d0ded16a2e59c35b43ace7ad2b53fb6df57 (patch) | |
tree | 53541c1a93a58282015b320d7f78d5fd600f5637 /arch/x86/include/asm/kvm_host.h | |
parent | 4d25502aa12ef1fb01e599cbfd341a8d436f4b8b (diff) |
KVM: x86/mmu: replace direct_map with root_role.direct
direct_map is always equal to the direct field of the root page's role:
- for shadow paging, direct_map is true if CR0.PG=0 and root_role.direct is
copied from cpu_role.base.direct
- for TDP, it is always true and root_role.direct is also always true
- for shadow TDP, it is always false and root_role.direct is also always
false
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 | 1 |
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 aea39fe03a99..752a6d2357ce 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; - bool direct_map; /* * The pkru_mask indicates if protection key checks are needed. It |