OSDN Git Service

KVM: x86/mmu: Pass const memslot to rmap_add()
authorDavid Matlack <dmatlack@google.com>
Wed, 22 Jun 2022 19:27:01 +0000 (15:27 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:57 +0000 (04:51 -0400)
commit6ec6509eea39ee249550a398fd1790b26833675d
tree02c639c445445ca696cb740b002474f59e15cbae
parentcbd858b17e379f727c6bf1eaedde7b1a44e75b40
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>
arch/x86/kvm/mmu/mmu.c