diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2009-06-10 16:34:08 -0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-13 19:17:28 -0500 |
commit | df97b92060e9f754a5dcaa81a762ea708aa087c7 (patch) | |
tree | a930d2b183987c520e7732eee33ff09d9d46b2e3 | |
parent | 6693665ace00864640c1c9f5020ea125e0b997c2 (diff) |
Add -no-virtio-balloon command-line option
This new option may be used to disable the virtio-balloon device.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | hw/pc.c | 2 | ||||
-rw-r--r-- | qemu-options.hx | 9 | ||||
-rw-r--r-- | sysemu.h | 1 | ||||
-rw-r--r-- | vl.c | 4 |
4 files changed, 15 insertions, 1 deletions
@@ -1152,7 +1152,7 @@ static void pc_init1(ram_addr_t ram_size, } /* Add virtio balloon device */ - if (pci_enabled) { + if (pci_enabled && !no_virtio_balloon) { pci_create_simple(pci_bus, -1, "virtio-balloon-pci"); } diff --git a/qemu-options.hx b/qemu-options.hx index fa549c36e2..9d5e05a082 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -681,6 +681,15 @@ Disable HPET support. ETEXI #ifdef TARGET_I386 +DEF("no-virtio-balloon", 0, QEMU_OPTION_no_virtio_balloon, + "-no-virtio-balloon disable virtio balloon device\n") +#endif +STEXI +@item -no-virtio-balloon +Disable virtio-balloon device. +ETEXI + +#ifdef TARGET_I386 DEF("acpitable", HAS_ARG, QEMU_OPTION_acpitable, "-acpitable [sig=str][,rev=n][,oem_id=str][,oem_table_id=str][,oem_rev=n][,asl_compiler_id=str][,asl_compiler_rev=n][,data=file1[:file2]...]\n" " ACPI table description\n") @@ -116,6 +116,7 @@ extern int win2k_install_hack; extern int rtc_td_hack; extern int alt_grab; extern int usb_enabled; +extern int no_virtio_balloon; extern int smp_cpus; extern int cursor_hide; extern int graphic_rotate; @@ -244,6 +244,7 @@ int smp_cpus = 1; const char *vnc_display; int acpi_enabled = 1; int no_hpet = 0; +int no_virtio_balloon = 0; int fd_bootchk = 1; int no_reboot = 0; int no_shutdown = 0; @@ -5551,6 +5552,9 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_no_hpet: no_hpet = 1; break; + case QEMU_OPTION_no_virtio_balloon: + no_virtio_balloon = 1; + break; #endif case QEMU_OPTION_no_reboot: no_reboot = 1; |