KVM: x86/mmu: Propagate memslot const qualifier
authorBen Gardon <bgardon@google.com>
Mon, 15 Nov 2021 23:45:58 +0000 (15:45 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:43 +0000 (04:24 -0500)
commit8283e36abfff507c64fe8289ac30ea7ab59648aa
treeff0a6d494b07dc0b194d76f911fbca6d48d8a6d4
parent4d78d0b39ad03e7357452a669938653a379cfebd
KVM: x86/mmu: Propagate memslot const qualifier

In preparation for implementing in-place hugepage promotion, various
functions will need to be called from zap_collapsible_spte_range, which
has the const qualifier on its memslot argument. Propagate the const
qualifier to the various functions which will be needed. This just serves
to simplify the following patch.

No functional change intended.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20211115234603.2908381-11-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/mmu_internal.h
arch/x86/kvm/mmu/page_track.c
arch/x86/kvm/mmu/spte.c
arch/x86/kvm/mmu/spte.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c