]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Remove need for a vcpu from mmu_try_to_unsync_pages
authorBen Gardon <bgardon@google.com>
Mon, 15 Nov 2021 23:45:54 +0000 (15:45 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:42 +0000 (04:24 -0500)
commit8751e6ce7cf94b81d38e7c86292ceb968f04d9e4
treefef01d241581bcbb0ba0df8d647a22c9a0fc809f
parentb9615417341392d960de8d4a4e83847f34fdc540
KVM: x86/mmu: Remove need for a vcpu from mmu_try_to_unsync_pages

The vCPU argument to mmu_try_to_unsync_pages is now only used to get a
pointer to the associated struct kvm, so pass in the kvm pointer from
the beginning to remove the need for a vCPU when calling the function.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20211115234603.2908381-7-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/mmu_internal.h
arch/x86/kvm/mmu/spte.c