mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
iotests: iothreads need ioeventfd
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> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20210319202335.2397060-7-laurent@vivier.eu> Message-Id: <20210323165308.15244-22-alex.bennee@linaro.org>
This commit is contained in:
parent
7033f1fd1c
commit
359a856270
4 changed files with 24 additions and 3 deletions
|
@ -977,5 +977,18 @@ _require_devices()
|
|||
done
|
||||
}
|
||||
|
||||
_require_one_device_of()
|
||||
{
|
||||
available=$($QEMU -M none -device help | \
|
||||
grep ^name | sed -e 's/^name "//' -e 's/".*$//')
|
||||
for device
|
||||
do
|
||||
if echo "$available" | grep -q "$device" ; then
|
||||
return
|
||||
fi
|
||||
done
|
||||
_notrun "$* not available"
|
||||
}
|
||||
|
||||
# make sure this script returns success
|
||||
true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue