Patchwork [4/4] pc-1.3: add virtio-rng and virtio-balloon to the default machine

login
register
mail settings
Submitter Anthony Liguori
Date Oct. 26, 2012, 5:21 p.m.
Message ID <1351272088-7942-5-git-send-email-aliguori@us.ibm.com>
Download mbox | patch
Permalink /patch/194543/
State New
Headers show

Comments

Anthony Liguori - Oct. 26, 2012, 5:21 p.m.
The default machine should be useful so add the virtio-rng and
virtio-balloon devices by default to enable these features.

These are protected by -nodefaults so they will only be added if you're
executing from the command line (not if you're using libvirt).

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
 hw/pc_piix.c | 5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index 47ebc1a..65d0889 100644
--- a/hw/pc_piix.c
+++ b/hw/pc_piix.c
@@ -352,6 +352,11 @@  static QEMUMachine pc_machine_v1_3 = {
     .init = pc_init_pci,
     .max_cpus = 255,
     .is_default = 1,
+    .default_devices = (DeviceDescription[]){
+        { "virtio-rng-pci" },
+        { "virtio-balloon-pci" },
+        { },
+    },
 };
 
 #define PC_COMPAT_1_2 \