From 414f6bbd99f304ada6d84ff90506a69cdde918e2 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sat, 17 Aug 2013 17:59:17 -0400 Subject: [PATCH] guest: Use virtio on plain qemu on x86 It's been available for a long long time, and unifies code paths. --- tests/cli-test-xml/compare/qemu-plain.xml | 1 + tests/xmlconfig-xml/install-f11-qemu.xml | 5 +++-- virtManager/addhardware.py | 2 +- virtinst/guest.py | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/cli-test-xml/compare/qemu-plain.xml b/tests/cli-test-xml/compare/qemu-plain.xml index cbca8987d..73152ec1e 100644 --- a/tests/cli-test-xml/compare/qemu-plain.xml +++ b/tests/cli-test-xml/compare/qemu-plain.xml @@ -25,6 +25,7 @@ + diff --git a/tests/xmlconfig-xml/install-f11-qemu.xml b/tests/xmlconfig-xml/install-f11-qemu.xml index e33f01b84..bad8705cf 100644 --- a/tests/xmlconfig-xml/install-f11-qemu.xml +++ b/tests/xmlconfig-xml/install-f11-qemu.xml @@ -26,12 +26,12 @@ - + - + @@ -40,6 +40,7 @@ + diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py index 981ede702..70270de98 100644 --- a/virtManager/addhardware.py +++ b/virtManager/addhardware.py @@ -542,7 +542,7 @@ class vmmAddHardware(vmmGObjectUI): _("SCSI disk")) add_dev("usb", virtinst.VirtualDisk.DEVICE_DISK, _("USB disk")) - if self.vm.get_hv_type() in ["kvm", "test"]: + if self.vm.get_hv_type() in ["qemu", "kvm", "test"]: add_dev("sata", virtinst.VirtualDisk.DEVICE_DISK, _("SATA disk")) add_dev("virtio", virtinst.VirtualDisk.DEVICE_DISK, diff --git a/virtinst/guest.py b/virtinst/guest.py index 0cfdc84ac..b78e9f2cb 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -686,7 +686,7 @@ class Guest(XMLBuilder): def _can_virtio(self, key): if not self.os.is_x86(): return False - if not self.conn.is_qemu() or self.type != "kvm": + if not self.conn.is_qemu(): return False if not self._lookup_osdict_key(key, False): return False