]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit269e9552d208179bc14ea7f80a9e3e8ae97795a2
treef9d2d2eb31ba98c5b38bc8c27a9c45b1d97de631
parent071064f14d87536e38235df1bdeabe404023203f
KVM: const-ify all relevant uses of struct kvm_memory_slot

As alluded to in commit f36f3f2846b5 ("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