Back when this was introduced in 2014 (commit aa772f01e124) using virtio-scsi instead of virtio-blk made sense, because virtio-pci support on aarch64/virt was still not widely available and virtio-mmio couldn't do hotplug. These days, however, virtio-pci availability is something that we can assume is present on any remotely reasonable deployment target, so it's better to no longer behave differently than other architectures. Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- tests/cli-test-xml/compare/virt-install-aarch64-cdrom.xml | 8 ++++---- .../cli-test-xml/compare/virt-install-aarch64-kvm-gic.xml | 2 +- .../compare/virt-install-aarch64-kvm-import.xml | 3 +-- .../compare/virt-install-aarch64-machdefault.xml | 3 +-- .../compare/virt-install-aarch64-machvirt.xml | 3 +-- .../compare/virt-install-arm-defaultmach-f20.xml | 3 +-- .../cli-test-xml/compare/virt-install-arm-kvm-import.xml | 3 +-- tests/cli-test-xml/compare/virt-install-arm-virt-f20.xml | 3 +-- virtinst/devices/disk.py | 4 ---- 9 files changed, 11 insertions(+), 21 deletions(-) diff --git a/tests/cli-test-xml/compare/virt-install-aarch64-cdrom.xml b/tests/cli-test-xml/compare/virt-install-aarch64-cdrom.xml index 212c47fd..eb6439fe 100644 --- a/tests/cli-test-xml/compare/virt-install-aarch64-cdrom.xml +++ b/tests/cli-test-xml/compare/virt-install-aarch64-cdrom.xml @@ -20,12 +20,12 @@ <disk type="file" device="disk"> <driver name="qemu" type="qcow2"/> <source file="/dev/default-pool/testvol1.img"/> - <target dev="sda" bus="scsi"/> + <target dev="vda" bus="virtio"/> </disk> <disk type="file" device="cdrom"> <driver name="qemu" type="qcow2"/> <source file="/dev/default-pool/testvol2.img"/> - <target dev="sdb" bus="scsi"/> + <target dev="sda" bus="scsi"/> <readonly/> </disk> <controller type="usb" index="0" model="qemu-xhci" ports="15"/> @@ -63,10 +63,10 @@ <disk type="file" device="disk"> <driver name="qemu" type="qcow2"/> <source file="/dev/default-pool/testvol1.img"/> - <target dev="sda" bus="scsi"/> + <target dev="vda" bus="virtio"/> </disk> <disk type="file" device="cdrom"> - <target dev="sdb" bus="scsi"/> + <target dev="sda" bus="scsi"/> <readonly/> </disk> <controller type="usb" index="0" model="qemu-xhci" ports="15"/> diff --git a/tests/cli-test-xml/compare/virt-install-aarch64-kvm-gic.xml b/tests/cli-test-xml/compare/virt-install-aarch64-kvm-gic.xml index 96175f87..0a5a71aa 100644 --- a/tests/cli-test-xml/compare/virt-install-aarch64-kvm-gic.xml +++ b/tests/cli-test-xml/compare/virt-install-aarch64-kvm-gic.xml @@ -24,7 +24,7 @@ <disk type="file" device="disk"> <driver name="qemu" type="qcow2"/> <source file="/var/lib/libvirt/images/foobar.qcow2"/> - <target dev="sda" bus="scsi"/> + <target dev="vda" bus="virtio"/> </disk> <controller type="scsi" index="0" model="virtio-scsi"> <address type="pci"/> diff --git a/tests/cli-test-xml/compare/virt-install-aarch64-kvm-import.xml b/tests/cli-test-xml/compare/virt-install-aarch64-kvm-import.xml index f4fc88e0..9006d4e5 100644 --- a/tests/cli-test-xml/compare/virt-install-aarch64-kvm-import.xml +++ b/tests/cli-test-xml/compare/virt-install-aarch64-kvm-import.xml @@ -21,10 +21,9 @@ <disk type="file" device="disk"> <driver name="qemu" type="qcow2"/> <source file="/dev/default-pool/testvol1.img"/> - <target dev="sda" bus="scsi"/> + <target dev="vda" bus="virtio"/> </disk> <controller type="usb" index="0" model="qemu-xhci" ports="15"/> - <controller type="scsi" index="0" model="virtio-scsi"/> <interface type="bridge"> <source bridge="eth0"/> <mac address="00:11:22:33:44:55"/> diff --git a/tests/cli-test-xml/compare/virt-install-aarch64-machdefault.xml b/tests/cli-test-xml/compare/virt-install-aarch64-machdefault.xml index 27494db4..5f06f35e 100644 --- a/tests/cli-test-xml/compare/virt-install-aarch64-machdefault.xml +++ b/tests/cli-test-xml/compare/virt-install-aarch64-machdefault.xml @@ -19,10 +19,9 @@ <disk type="file" device="disk"> <driver name="qemu" type="qcow2"/> <source file="/dev/default-pool/testvol1.img"/> - <target dev="sda" bus="scsi"/> + <target dev="vda" bus="virtio"/> </disk> <controller type="usb" index="0" model="qemu-xhci" ports="15"/> - <controller type="scsi" index="0" model="virtio-scsi"/> <interface type="bridge"> <source bridge="eth0"/> <mac address="00:11:22:33:44:55"/> diff --git a/tests/cli-test-xml/compare/virt-install-aarch64-machvirt.xml b/tests/cli-test-xml/compare/virt-install-aarch64-machvirt.xml index 27494db4..5f06f35e 100644 --- a/tests/cli-test-xml/compare/virt-install-aarch64-machvirt.xml +++ b/tests/cli-test-xml/compare/virt-install-aarch64-machvirt.xml @@ -19,10 +19,9 @@ <disk type="file" device="disk"> <driver name="qemu" type="qcow2"/> <source file="/dev/default-pool/testvol1.img"/> - <target dev="sda" bus="scsi"/> + <target dev="vda" bus="virtio"/> </disk> <controller type="usb" index="0" model="qemu-xhci" ports="15"/> - <controller type="scsi" index="0" model="virtio-scsi"/> <interface type="bridge"> <source bridge="eth0"/> <mac address="00:11:22:33:44:55"/> diff --git a/tests/cli-test-xml/compare/virt-install-arm-defaultmach-f20.xml b/tests/cli-test-xml/compare/virt-install-arm-defaultmach-f20.xml index 5194c344..be1c21f5 100644 --- a/tests/cli-test-xml/compare/virt-install-arm-defaultmach-f20.xml +++ b/tests/cli-test-xml/compare/virt-install-arm-defaultmach-f20.xml @@ -21,10 +21,9 @@ <disk type="file" device="disk"> <driver name="qemu" type="qcow2"/> <source file="/dev/default-pool/testvol1.img"/> - <target dev="sda" bus="scsi"/> + <target dev="vda" bus="virtio"/> </disk> <controller type="usb" index="0" model="qemu-xhci" ports="15"/> - <controller type="scsi" index="0" model="virtio-scsi"/> <interface type="bridge"> <source bridge="eth0"/> <mac address="00:11:22:33:44:55"/> diff --git a/tests/cli-test-xml/compare/virt-install-arm-kvm-import.xml b/tests/cli-test-xml/compare/virt-install-arm-kvm-import.xml index d613b33e..5ca50869 100644 --- a/tests/cli-test-xml/compare/virt-install-arm-kvm-import.xml +++ b/tests/cli-test-xml/compare/virt-install-arm-kvm-import.xml @@ -21,10 +21,9 @@ <disk type="file" device="disk"> <driver name="qemu" type="qcow2"/> <source file="/dev/default-pool/testvol1.img"/> - <target dev="sda" bus="scsi"/> + <target dev="vda" bus="virtio"/> </disk> <controller type="usb" index="0" model="qemu-xhci" ports="15"/> - <controller type="scsi" index="0" model="virtio-scsi"/> <interface type="bridge"> <source bridge="eth0"/> <mac address="00:11:22:33:44:55"/> diff --git a/tests/cli-test-xml/compare/virt-install-arm-virt-f20.xml b/tests/cli-test-xml/compare/virt-install-arm-virt-f20.xml index e94de3d1..485aeeb2 100644 --- a/tests/cli-test-xml/compare/virt-install-arm-virt-f20.xml +++ b/tests/cli-test-xml/compare/virt-install-arm-virt-f20.xml @@ -21,10 +21,9 @@ <disk type="file" device="disk"> <driver name="qemu" type="qcow2"/> <source file="/dev/default-pool/testvol1.img"/> - <target dev="sda" bus="scsi"/> + <target dev="vda" bus="virtio"/> </disk> <controller type="usb" index="0" model="qemu-xhci" ports="15"/> - <controller type="scsi" index="0" model="virtio-scsi"/> <interface type="bridge"> <source bridge="eth0"/> <mac address="00:11:22:33:44:55"/> diff --git a/virtinst/devices/disk.py b/virtinst/devices/disk.py index 5ed95b51..a2717760 100644 --- a/virtinst/devices/disk.py +++ b/virtinst/devices/disk.py @@ -949,10 +949,6 @@ class DeviceDisk(Device): # This likely isn't correct, but it's kind of a catch all # for virt types we don't know how to handle. return "ide" - - if guest.os.is_arm_machvirt(): - # We prefer virtio-scsi for machvirt, gets us hotplug - return "scsi" if self.is_disk() and guest.supports_virtiodisk(): return "virtio" if self.is_cdrom() and guest.supports_virtioscsi(): -- 2.20.1 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list