diff options
author | Ben Gardon <bgardon@google.com> | 2021-11-16 00:45:53 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-12-08 10:24:42 +0100 |
commit | 9d395a0a7aca75caa72a8ab11a6efc9909c5a918 (patch) | |
tree | 8fdd342f226e24c0be3fe35d4eb875d133a01ffb /arch/x86/include/asm/kvm_page_track.h | |
parent | KVM: x86/mmu: Use shadow page role to detect PML-unfriendly pages for L2 (diff) | |
download | linux-9d395a0a7aca75caa72a8ab11a6efc9909c5a918.tar.xz linux-9d395a0a7aca75caa72a8ab11a6efc9909c5a918.zip |
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>
Diffstat (limited to 'arch/x86/include/asm/kvm_page_track.h')
-rw-r--r-- | arch/x86/include/asm/kvm_page_track.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_page_track.h b/arch/x86/include/asm/kvm_page_track.h index 9d4a3b1b25b9..e99a30a4d38b 100644 --- a/arch/x86/include/asm/kvm_page_track.h +++ b/arch/x86/include/asm/kvm_page_track.h @@ -63,7 +63,7 @@ void kvm_slot_page_track_add_page(struct kvm *kvm, void kvm_slot_page_track_remove_page(struct kvm *kvm, struct kvm_memory_slot *slot, gfn_t gfn, enum kvm_page_track_mode mode); -bool kvm_slot_page_track_is_active(struct kvm_vcpu *vcpu, +bool kvm_slot_page_track_is_active(struct kvm *kvm, struct kvm_memory_slot *slot, gfn_t gfn, enum kvm_page_track_mode mode); |