KVM: const-ify all relevant uses of struct kvm_memory_slot
As alluded to in commit f36f3f28 ("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>
Showing
- arch/x86/include/asm/kvm_host.h 2 additions, 2 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/mmu/mmu.c 21 additions, 21 deletionsarch/x86/kvm/mmu/mmu.c
- arch/x86/kvm/mmu/mmu_internal.h 2 additions, 2 deletionsarch/x86/kvm/mmu/mmu_internal.h
- arch/x86/kvm/mmu/tdp_mmu.c 4 additions, 3 deletionsarch/x86/kvm/mmu/tdp_mmu.c
- arch/x86/kvm/mmu/tdp_mmu.h 3 additions, 3 deletionsarch/x86/kvm/mmu/tdp_mmu.h
- arch/x86/kvm/x86.c 2 additions, 5 deletionsarch/x86/kvm/x86.c
Loading
Please register or sign in to comment