]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
KVM: Push rmap into kvm_arch_memory_slot
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Wed, 1 Aug 2012 09:03:28 +0000 (18:03 +0900)
committerAvi Kivity <avi@redhat.com>
Mon, 6 Aug 2012 09:47:30 +0000 (12:47 +0300)
commitd89cc617b954aff4030fce178f7d86f59aaf713d
treed04f2ccdddd1d718044f47fdf8442054d87799f6
parent65fbe37c42ed75604c9a770639209dcee162ebe7
KVM: Push rmap into kvm_arch_memory_slot

Two reasons:
 - x86 can integrate rmap and rmap_pde and remove heuristics in
   __gfn_to_rmap().
 - Some architectures do not need rmap.

Since rmap is one of the most memory consuming stuff in KVM, ppc'd
better restrict the allocation to Book3S HV.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_hv_rm_mmu.c
arch/powerpc/kvm/powerpc.c
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c