virtio-scsi by default on power

Power architecture guests should default to virtio-scsi rather than spapr-scsi

Signed-off-by: Scott Garfinkle <scottgar@linux.vnet.ibm.com>
This commit is contained in:
Scott Garfinkle 2017-11-29 15:41:03 -06:00 committed by Cole Robinson
parent 08b2b808bd
commit 249ff1ed36
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@
<target dev="sda" bus="scsi"/>
<readonly/>
</disk>
<controller type="scsi" index="0" model="virtio-scsi"/>
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
<image compression="off"/>
</graphics>

View File

@ -1012,7 +1012,7 @@ class Guest(XMLBuilder):
break
# Add virtio-scsi controller if needed
if (self.os.is_arm_machvirt() and
if ((self.os.is_arm_machvirt() or self.os.is_pseries()) and
not has_any_scsi and
not has_virtio_scsi):
for dev in self.get_devices("disk"):