]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Don't call kvm_mmu_change_mmu_pages() if the count hasn't changed
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>
Mon, 6 Dec 2021 19:54:23 +0000 (20:54 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:28 +0000 (04:24 -0500)
commit4486745b9fe70993b3c5e27350381268e4960327
treeac3b17c46d9eb3d04723eddbe9ede38e443a0a71
parentcb0a6b3f1c7e6f76b325c2c2ae01e61768ae800a
KVM: x86: Don't call kvm_mmu_change_mmu_pages() if the count hasn't changed

There is no point in calling kvm_mmu_change_mmu_pages() for memslot
operations that don't change the total page count, so do it just for
KVM_MR_CREATE and KVM_MR_DELETE.

Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <9e56b7616a11f5654e4ab486b3237366b7ba9f2a.1638817640.git.maciej.szmigiero@oracle.com>
arch/x86/kvm/x86.c