OSDN Git Service

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)
commit4d78d0b39ad03e7357452a669938653a379cfebd
treefef01d241581bcbb0ba0df8d647a22c9a0fc809f
parent9d395a0a7aca75caa72a8ab11a6efc9909c5a918
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