diff options
author | 2022-06-22 15:27:01 -0400 | |
---|---|---|
committer | 2022-06-24 04:51:57 -0400 | |
commit | 6ec6509eea39ee249550a398fd1790b26833675d (patch) | |
tree | 02c639c445445ca696cb740b002474f59e15cbae | |
parent | KVM: x86/mmu: Allow NULL @vcpu in kvm_mmu_find_shadow_page() (diff) | |
download | wireguard-linux-6ec6509eea39ee249550a398fd1790b26833675d.tar.xz wireguard-linux-6ec6509eea39ee249550a398fd1790b26833675d.zip |
KVM: x86/mmu: Pass const memslot to rmap_add()
Constify rmap_add()'s @slot parameter; it is simply passed on to
gfn_to_rmap(), which takes a const memslot.
No functional change intended.
Reviewed-by: Ben Gardon <bgardon@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220516232138.1783324-15-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | arch/x86/kvm/mmu/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c index a7748c5a2385..45a4e85c0b2c 100644 --- a/arch/x86/kvm/mmu/mmu.c +++ b/arch/x86/kvm/mmu/mmu.c @@ -1556,7 +1556,7 @@ static bool kvm_test_age_rmapp(struct kvm *kvm, struct kvm_rmap_head *rmap_head, #define RMAP_RECYCLE_THRESHOLD 1000 -static void rmap_add(struct kvm_vcpu *vcpu, struct kvm_memory_slot *slot, +static void rmap_add(struct kvm_vcpu *vcpu, const struct kvm_memory_slot *slot, u64 *spte, gfn_t gfn) { struct kvm_mmu_page *sp; |