OSDN Git Service

KVM: x86/mmu: Remove need for a vcpu from kvm_slot_page_track_is_active
authorBen Gardon <bgardon@google.com>
Mon, 15 Nov 2021 23:45:53 +0000 (15:45 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:42 +0000 (04:24 -0500)
commit9d395a0a7aca75caa72a8ab11a6efc9909c5a918
tree8fdd342f226e24c0be3fe35d4eb875d133a01ffb
parentce92ef7604ffe74da84f559f6eba8c6053250451
KVM: x86/mmu: Remove need for a vcpu from kvm_slot_page_track_is_active

kvm_slot_page_track_is_active only uses its vCPU argument to get a
pointer to the assoicated struct kvm, so just pass in the struct KVM to
remove the need for a vCPU pointer.

No functional change intended.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20211115234603.2908381-6-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_page_track.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/page_track.c