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 <[email protected]>
---
 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