aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>2012-08-01 05:03:28 -0400
committerAvi Kivity <avi@redhat.com>2012-08-06 05:47:30 -0400
commitd89cc617b954aff4030fce178f7d86f59aaf713d (patch)
treed04f2ccdddd1d718044f47fdf8442054d87799f6 /include
parent65fbe37c42ed75604c9a770639209dcee162ebe7 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm_host.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index dbc65f9d6a2b..3c16f0f1fe35 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -213,7 +213,6 @@ struct kvm_memory_slot {
213 gfn_t base_gfn; 213 gfn_t base_gfn;
214 unsigned long npages; 214 unsigned long npages;
215 unsigned long flags; 215 unsigned long flags;
216 unsigned long *rmap;
217 unsigned long *dirty_bitmap; 216 unsigned long *dirty_bitmap;
218 struct kvm_arch_memory_slot arch; 217 struct kvm_arch_memory_slot arch;
219 unsigned long userspace_addr; 218 unsigned long userspace_addr;