]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97f31abb357e5a47efef06eb2b985a488599a2b4
treeff0a6d494b07dc0b194d76f911fbca6d48d8a6d4
parent8751e6ce7cf94b81d38e7c86292ceb968f04d9e4
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