mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
Add virtio-balloon support
This adds a VirtIO based balloon driver. It uses madvise() to actually balloon the memory when possible. Until 2.6.27, KVM forced memory pinning so we must disable ballooning unless the kernel actually supports it when using KVM. It's always safe when using TCG. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5874 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
df751fa8bf
commit
bd3220870f
7 changed files with 261 additions and 3 deletions
3
kvm.h
3
kvm.h
|
@ -42,6 +42,9 @@ void kvm_physical_sync_dirty_bitmap(target_phys_addr_t start_addr, target_phys_a
|
|||
|
||||
int kvm_log_start(target_phys_addr_t phys_addr, target_phys_addr_t len);
|
||||
int kvm_log_stop(target_phys_addr_t phys_addr, target_phys_addr_t len);
|
||||
|
||||
int kvm_has_sync_mmu(void);
|
||||
|
||||
/* internal API */
|
||||
|
||||
struct KVMState;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue