[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 6/6] iotests: iothreads need ioeventfd
From: |
Cornelia Huck |
Subject: |
Re: [PATCH v2 6/6] iotests: iothreads need ioeventfd |
Date: |
Fri, 19 Mar 2021 15:23:14 +0100 |
On Fri, 19 Mar 2021 14:51:59 +0100
Laurent Vivier <laurent@vivier.eu> wrote:
> Le 19/03/2021 à 14:36, Philippe Mathieu-Daudé a écrit :
> > On 3/19/21 2:25 PM, Laurent Vivier wrote:
> >> And ioeventfd are only available with virtio-scsi-pci or virtio-scsi-ccw,
> >> use the alias but add a rule to require virtio-scsi-pci or virtio-scsi-ccw
> >> for the tests that use iothreads.
> >>
> >> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
> >> ---
> >> tests/qemu-iotests/127 | 3 ++-
> >> tests/qemu-iotests/256 | 6 ++++--
> >> tests/qemu-iotests/iotests.py | 5 +++++
> >> 3 files changed, 11 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/tests/qemu-iotests/127 b/tests/qemu-iotests/127
> >> index 98e8e82a8210..abe24861100d 100755
> >> --- a/tests/qemu-iotests/127
> >> +++ b/tests/qemu-iotests/127
> >> @@ -44,7 +44,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
> >> _supported_fmt qcow2
> >> _supported_proto file fuse
> >>
> >> -_require_devices virtio-scsi scsi-hd
> >> +_require_devices scsi-hd
> >> +_require_devices virtio-scsi-pci || _require_devices virtio-scsi-ccw
>
> Re-reading the code, I think this cannot work because we have an "exit" if
> the test fails.
We could try to make _require_devices accept alternatives, but that is
probably overkill...
>
> The test is executed anyway because s390x provides virtio-scsi-ccw and
> virtio-scsi-pci.
...because of this.
Maybe just add a comment that we require pci or ccw because iothreads
depend on ioventfd, but checking for pci is enough, as we have pci when
we have ccw?
>
> Thanks,
> Laurent
>
- [PATCH v2 2/6] m68k: add the virtio devices aliases, (continued)
[PATCH v2 4/6] iotests: Revert "iotests: use -ccw on s390x for 040, 139, and 182", Laurent Vivier, 2021/03/19
[PATCH v2 5/6] iotests: test m68k with the virt machine, Laurent Vivier, 2021/03/19