]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1ce7472cbdcf27145abc3d0d22730ae101bd4fdf
tree02c639c445445ca696cb740b002474f59e15cbae
parentdc8b905fbef81859bf5d0e9339dfdcf0e7f61933
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