]> git.baikalelectronics.ru Git - kernel.git/commit
kvm/x86: Fix 'lpages' kvm stat for TDM MMU
authorShahin, Md Shahadat Hossain <shahinmd@amazon.de>
Fri, 30 Apr 2021 11:52:31 +0000 (11:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 May 2021 15:25:34 +0000 (11:25 -0400)
commitd7d4c8c13ecb236b5b182b8e44a13dd005f63be3
treefd2737addd3b7f5483f4c5abb8e366e750d49c23
parent7f6254835e8850a174c5931d14f3faf4c24f0701
kvm/x86: Fix 'lpages' kvm stat for TDM MMU

Large pages not being created properly may result in increased memory
access time. The 'lpages' kvm stat used to keep track of the current
number of large pages in the system, but with TDP MMU enabled the stat
is not showing the correct number.

This patch extends the lpages counter to cover the TDP case.

Signed-off-by: Md Shahadat Hossain Shahin <shahinmd@amazon.de>
Cc: Bartosz Szczepanek <bsz@amazon.de>
Message-Id: <1619783551459.35424@amazon.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c