]> Git Repo - qemu.git/commitdiff
Add -no-virtio-balloon command-line option
authorEduardo Habkost <[email protected]>
Wed, 10 Jun 2009 19:34:08 +0000 (16:34 -0300)
committerAnthony Liguori <[email protected]>
Sun, 14 Jun 2009 00:17:28 +0000 (19:17 -0500)
This new option may be used to disable the virtio-balloon device.

Signed-off-by: Eduardo Habkost <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/pc.c
qemu-options.hx
sysemu.h
vl.c

diff --git a/hw/pc.c b/hw/pc.c
index 0934778c791c7cf795d36b66fc2bc858e03d9c13..aa9257679be0ba8fe08cf4bb5113843fc1d0778a 100644 (file)
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -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");
     }
 
index fa549c36e2f14f27cb89b3a665a7c09e50478d93..9d5e05a082be4fc3b8b12f1de2fe734641d36470 100644 (file)
@@ -680,6 +680,15 @@ STEXI
 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"
index e5e5ba0603ebfb4fb09601385d858ec5990f15fa..fe24415cd7033024d10167725da6e6d8ee7418c8 100644 (file)
--- a/sysemu.h
+++ b/sysemu.h
@@ -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;
diff --git a/vl.c b/vl.c
index 40fc3a432cb1e06af5783973f8bcd4895a94ddd2..3d213f395def62da8f79e282c453604520da6cf4 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -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;
This page took 0.047511 seconds and 4 git commands to generate.