diff options
author | Izik Eidus <izike@qumranet.com> | 2007-10-09 19:20:39 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 17:52:51 +0200 |
commit | 6fc138d2278078990f597cb1f62fde9e5b458f96 (patch) | |
tree | 176026316843a4e47b8271f0e84a03f8807ecb64 /drivers/kvm/kvm.h | |
parent | d77c26fce93d07802db97498959587eb9347b31d (diff) | |
download | lwn-6fc138d2278078990f597cb1f62fde9e5b458f96.tar.gz lwn-6fc138d2278078990f597cb1f62fde9e5b458f96.zip |
KVM: Support assigning userspace memory to the guest
Instead of having the kernel allocate memory to the guest, let userspace
allocate it and pass the address to the kernel.
This is required for s390 support, but also enables features like memory
sharing and using hugetlbfs backed memory.
Signed-off-by: Izik Eidus <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index ec5b498945ae..3eaed4dafec7 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h @@ -408,6 +408,7 @@ struct kvm_memory_slot { struct page **phys_mem; unsigned long *rmap; unsigned long *dirty_bitmap; + int user_alloc; /* user allocated memory */ }; struct kvm { |