[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/5] qemu-iotests: 068: use -drive/-device instead o
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 4/5] qemu-iotests: 068: use -drive/-device instead of -hda |
Date: |
Thu, 15 Jun 2017 17:38:12 +0100 |
The legacy -hda option does not support -drive/-device parameters. They
will be required by the next patch that extends this test case.
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
tests/qemu-iotests/068 | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/068 b/tests/qemu-iotests/068
index 653e23c..7292643 100755
--- a/tests/qemu-iotests/068
+++ b/tests/qemu-iotests/068
@@ -53,15 +53,20 @@ _make_test_img $IMG_SIZE
case "$QEMU_DEFAULT_MACHINE" in
s390-ccw-virtio)
platform_parm="-no-shutdown"
+ hba=virtio-scsi-ccw
;;
*)
platform_parm=""
+ hba=virtio-scsi-pci
;;
esac
_qemu()
{
- $QEMU $platform_parm -nographic -monitor stdio -serial none -hda
"$TEST_IMG" |\
+ $QEMU $platform_parm -nographic -monitor stdio -serial none \
+ -drive if=none,id=drive0,file="$TEST_IMG",format="$IMGFMT" \
+ -device $hba,id=hba0 \
+ -device scsi-hd,drive=drive0 \
"$@" |\
_filter_qemu | _filter_hmp
}
--
2.9.4
- [Qemu-devel] [PATCH 2/5] migration: hold AioContext lock for loadvm qemu_fclose(), (continued)
- [Qemu-devel] [PATCH 2/5] migration: hold AioContext lock for loadvm qemu_fclose(), Stefan Hajnoczi, 2017/06/15
- [Qemu-devel] [PATCH 3/5] qemu-iotests: 068: extract _qemu() function, Stefan Hajnoczi, 2017/06/15
- Re: [Qemu-devel] [PATCH 3/5] qemu-iotests: 068: extract _qemu() function, Kevin Wolf, 2017/06/19
- Re: [Qemu-devel] [PATCH 3/5] qemu-iotests: 068: extract _qemu() function, Eric Blake, 2017/06/27
- Re: [Qemu-devel] [PATCH 3/5] qemu-iotests: 068: extract _qemu() function, Kevin Wolf, 2017/06/28
- Re: [Qemu-devel] [PATCH 3/5] qemu-iotests: 068: extract _qemu() function, Eric Blake, 2017/06/28
- Re: [Qemu-devel] [PATCH 3/5] qemu-iotests: 068: extract _qemu() function, Kevin Wolf, 2017/06/28
[Qemu-devel] [PATCH 4/5] qemu-iotests: 068: use -drive/-device instead of -hda,
Stefan Hajnoczi <=
[Qemu-devel] [PATCH 5/5] qemu-iotests: 068: test iothread mode, Stefan Hajnoczi, 2017/06/15
Re: [Qemu-devel] [PATCH 0/5] qemu-iotests: test savevm/loadvm iothread (and make it work!), Stefan Hajnoczi, 2017/06/15
Re: [Qemu-devel] [PATCH 0/5] qemu-iotests: test savevm/loadvm iothread (and make it work!), Pavel Butsykin, 2017/06/19
Re: [Qemu-devel] [PATCH 0/5] qemu-iotests: test savevm/loadvm iothread (and make it work!), Kevin Wolf, 2017/06/19