summaryrefslogtreecommitdiff
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2007-10-18 09:59:34 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 17:52:54 +0200
commit8d4e1288ebb753d3140d81cb349f22b0a6829a4a (patch)
tree3fb754321abd1da8fa107f500dedd4a56f94ac0a /drivers/kvm/kvm.h
parente56a7a28e21aa2d1af659d8f38952411ce9ae40e (diff)
downloadlwn-8d4e1288ebb753d3140d81cb349f22b0a6829a4a.tar.gz
lwn-8d4e1288ebb753d3140d81cb349f22b0a6829a4a.zip
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 {
gfn_t base_gfn;
unsigned long npages;
unsigned long flags;
- struct page **phys_mem;
unsigned long *rmap;
unsigned long *dirty_bitmap;
- int user_alloc; /* user allocated memory */
unsigned long userspace_addr;
};