]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Always pass 0 for @quadrant when gptes are 8 bytes
authorDavid Matlack <dmatlack@google.com>
Wed, 22 Jun 2022 19:26:52 +0000 (15:26 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:54 +0000 (04:51 -0400)
commita1d08be5816cd3b6cb50041e5ac74e582b5bdca0
tree0a1dc43e8fc6e3ff344fc22a3117a64e628e170c
parente8dde1f3c2250ff17dae2cf96e28d68ed412158e
KVM: x86/mmu: Always pass 0 for @quadrant when gptes are 8 bytes

The quadrant is only used when gptes are 4 bytes, but
mmu_alloc_{direct,shadow}_roots() pass in a non-zero quadrant for PAE
page directories regardless. Make this less confusing by only passing in
a non-zero quadrant when it is actually necessary.

Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220516232138.1783324-6-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c