]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Move lpage_disallowed_link further "down" in kvm_mmu_page
authorSean Christopherson <seanjc@google.com>
Wed, 1 Sep 2021 22:10:23 +0000 (15:10 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Sep 2021 10:20:05 +0000 (06:20 -0400)
commitb5efeb850a2bfb9d134d1ee0c07e35b8072b600d
tree36f8aa4b5f9b9615d5f85f41f51f68033dfe7399
parent714450ad26881788ade99420779950d1feb26b1e
KVM: x86/mmu: Move lpage_disallowed_link further "down" in kvm_mmu_page

Move "lpage_disallowed_link" out of the first 64 bytes, i.e. out of the
first cache line, of kvm_mmu_page so that "spt" and to a lesser extent
"gfns" land in the first cache line.  "lpage_disallowed_link" is accessed
relatively infrequently compared to "spt", which is accessed any time KVM
is walking and/or manipulating the shadow page tables.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210901221023.1303578-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu_internal.h