]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: add missing update to max_mmu_rmap_size
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 7 Sep 2022 08:06:57 +0000 (16:06 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Sep 2022 21:03:20 +0000 (17:03 -0400)
commit06ef72779125fd474a4861760ad955d6ac387186
treeacf5d0cf8e891c86f1d8255fcda632c5d99cf8e9
parente208f4b05fee4c82605185eb0463ddb1c17e83a1
KVM: x86/mmu: add missing update to max_mmu_rmap_size

The update to statistic max_mmu_rmap_size is unintentionally removed by
commit ea824b8babcf ("KVM: x86/mmu: Remove redundant spte present check
in mmu_set_spte"). Add missing update to it or max_mmu_rmap_size will
always be nonsensical 0.

Fixes: ea824b8babcf ("KVM: x86/mmu: Remove redundant spte present check in mmu_set_spte")
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Message-Id: <20220907080657.42898-1-linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c