]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: replace direct_map with root_role.direct
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 13:00:56 +0000 (08:00 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Apr 2022 16:49:59 +0000 (12:49 -0400)
commit9e803a39024ae7e219a9876cb49b2b132b70be21
tree53541c1a93a58282015b320d7f78d5fd600f5637
parent305de1e38cd4ab9499eae9e6da50b98f7ec72fcd
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>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/x86.c