From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpFap-0008GD-1g for qemu-devel@nongnu.org; Tue, 05 Sep 2017 11:16:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpFae-0002rU-Uz for qemu-devel@nongnu.org; Tue, 05 Sep 2017 11:16:47 -0400 From: Cornelia Huck Date: Tue, 5 Sep 2017 17:16:14 +0200 Message-Id: <20170905151614.31303-4-cohuck@redhat.com> In-Reply-To: <20170905151614.31303-1-cohuck@redhat.com> References: <20170905151614.31303-1-cohuck@redhat.com> Subject: [Qemu-devel] [PATCH 3/3] iotests: use -ccw on s390x for 067 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kwolf@redhat.com, mreitz@redhat.com Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, borntraeger@de.ibm.com, agraf@suse.de, thuth@redhat.com, david@redhat.com, haoqf@linux.vnet.ibm.com, Cornelia Huck The default cpu model on s390x does not provide zPCI, which is not yet wired up on tcg. Moreover, virtio-ccw is the standard on s390x, so use the -ccw instead of the -pci versions of virtio devices on s390x. Provide an output file for s390x. Signed-off-by: Cornelia Huck --- tests/qemu-iotests/067 | 11 +- tests/qemu-iotests/067.s390-ccw-virtio.out | 458 +++++++++++++++++++++++++++++ 2 files changed, 468 insertions(+), 1 deletion(-) create mode 100644 tests/qemu-iotests/067.s390-ccw-virtio.out diff --git a/tests/qemu-iotests/067 b/tests/qemu-iotests/067 index 5d4ca4bc61..c5db04fb50 100755 --- a/tests/qemu-iotests/067 +++ b/tests/qemu-iotests/067 @@ -37,6 +37,15 @@ _supported_os Linux # Because anything other than 16 would change the output of query-block _unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' +case "$QEMU_DEFAULT_MACHINE" in + s390-ccw-virtio) + hba=virtio-scsi-ccw + ;; + *) + hba=virtio-scsi-pci + ;; +esac + function do_run_qemu() { echo Testing: "$@" @@ -141,7 +150,7 @@ echo echo === Empty drive with -device and device_del === echo -run_qemu -device virtio-scsi-pci -device scsi-cd,id=cd0 <