aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2007-10-18 10:59:34 -0400
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:52:54 -0500
commit8d4e1288ebb753d3140d81cb349f22b0a6829a4a (patch)
tree3fb754321abd1da8fa107f500dedd4a56f94ac0a /drivers/kvm/kvm.h
parente56a7a28e21aa2d1af659d8f38952411ce9ae40e (diff)
KVM: Allocate userspace memory for older userspace
Allocate a userspace buffer for older userspaces. Also eliminate phys_mem buffer. The memset() in kvmctl really kills initial memory usage but swapping works even with old userspaces. A side effect is that maximum guest side is reduced for older userspace on i386. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index e8a21e8cb2ad..eb006ed696c1 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -406,10 +406,8 @@ struct kvm_memory_slot {
406 gfn_t base_gfn; 406 gfn_t base_gfn;
407 unsigned long npages; 407 unsigned long npages;
408 unsigned long flags; 408 unsigned long flags;
409 struct page **phys_mem;
410 unsigned long *rmap; 409 unsigned long *rmap;
411 unsigned long *dirty_bitmap; 410 unsigned long *dirty_bitmap;
412 int user_alloc; /* user allocated memory */
413 unsigned long userspace_addr; 411 unsigned long userspace_addr;
414}; 412};
415 413