]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: const-ify all relevant uses of struct kvm_memory_slot
authorHamza Mahfooz <someguy@effective-light.com>
Tue, 13 Jul 2021 02:33:38 +0000 (22:33 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Aug 2021 10:04:24 +0000 (06:04 -0400)
commit72c2a061b80e74352d28fde1ec30ab1b6f0a1ddf
treef9d2d2eb31ba98c5b38bc8c27a9c45b1d97de631
parent95c99861e6a7a06cc510e8dc8de477392c7629b3
KVM: const-ify all relevant uses of struct kvm_memory_slot

As alluded to in commit 0ea2c208a614 ("KVM: add "new" argument to
kvm_arch_commit_memory_region"), a bunch of other places where struct
kvm_memory_slot is used, needs to be refactored to preserve the
"const"ness of struct kvm_memory_slot across-the-board.

Signed-off-by: Hamza Mahfooz <someguy@effective-light.com>
Message-Id: <20210713023338.57108-1-someguy@effective-light.com>
[Do not touch body of slot_rmap_walk_init. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/mmu_internal.h
arch/x86/kvm/mmu/tdp_mmu.c
arch/x86/kvm/mmu/tdp_mmu.h
arch/x86/kvm/x86.c