qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 4/4] pc-1.3: add virtio-rng and virtio-balloon to th


From: Anthony Liguori
Subject: [Qemu-devel] [PATCH 4/4] pc-1.3: add virtio-rng and virtio-balloon to the default machine
Date: Fri, 26 Oct 2012 12:21:28 -0500

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 <address@hidden>
---
 hw/pc_piix.c | 5 +++++
 1 file changed, 5 insertions(+)

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 \
-- 
1.8.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]