guest: Use virtio on plain qemu on x86

It's been available for a long long time, and unifies code paths.
This commit is contained in:
Cole Robinson 2013-08-17 17:59:17 -04:00
parent a8858cd366
commit 414f6bbd99
4 changed files with 6 additions and 4 deletions

View File

@ -25,6 +25,7 @@
<interface type="network">
<source network="default"/>
<mac address="00:11:22:33:44:55"/>
<model type="virtio"/>
</interface>
<input type="tablet" bus="usb"/>
<graphics type="vnc" port="-1"/>

View File

@ -26,12 +26,12 @@
<disk type="file" device="disk">
<driver name="qemu" type="raw"/>
<source file="/tmp/test.img"/>
<target dev="hda" bus="ide"/>
<target dev="vda" bus="virtio"/>
</disk>
<disk type="block" device="disk">
<driver name="qemu" type="raw"/>
<source dev="/dev/loop0"/>
<target dev="hdb" bus="ide"/>
<target dev="vdb" bus="virtio"/>
</disk>
<disk type="block" device="cdrom">
<target dev="hdc" bus="ide"/>
@ -40,6 +40,7 @@
<interface type="network">
<source network="default"/>
<mac address="22:22:33:44:55:66"/>
<model type="virtio"/>
</interface>
<input type="tablet" bus="usb"/>
<graphics type="sdl" display=":3.4" xauth="/tmp/.Xauthority"/>

View File

@ -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,

View File

@ -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