]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Update page stats in __rmap_add()
authorDavid Matlack <dmatlack@google.com>
Wed, 22 Jun 2022 19:27:03 +0000 (15:27 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:58 +0000 (04:51 -0400)
commit7ab86f23fbb4940e4828944c5afdad08bc8ec005
treeab9655d3b95db761b4f5d2ea743b1b01673f5955
parentaab512a0a34b9f98db57ee915843265d4ccd2e0a
KVM: x86/mmu: Update page stats in __rmap_add()

Update the page stats in __rmap_add() rather than at the call site. This
will avoid having to manually update page stats when splitting huge
pages in a subsequent commit.

No functional change intended.

Reviewed-by: Ben Gardon <bgardon@google.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220516232138.1783324-17-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c