diff options
author | Kevin Wolf <kwolf@redhat.com> | 2023-10-13 17:33:02 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-10-31 13:51:33 +0100 |
commit | 3be5762294bb03f6a8a284ada6cca7af3a3aeb20 (patch) | |
tree | b04781081573bb156a21b3cddd0bc75a78e24e49 | |
parent | fed824501501518b1ad3dc08a39f8f855508190d (diff) | |
download | qemu-3be5762294bb03f6a8a284ada6cca7af3a3aeb20.zip qemu-3be5762294bb03f6a8a284ada6cca7af3a3aeb20.tar.gz qemu-3be5762294bb03f6a8a284ada6cca7af3a3aeb20.tar.bz2 |
iotests: Test media change with iothreads
iotests case 118 already tests all relevant operations for media change
with multiple devices, however never with iothreads. This changes the
test so that the virtio-scsi tests run with an iothread.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20231013153302.39234-3-kwolf@redhat.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rwxr-xr-x | tests/qemu-iotests/118 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/qemu-iotests/118 b/tests/qemu-iotests/118 index 10dc474..6a4210c 100755 --- a/tests/qemu-iotests/118 +++ b/tests/qemu-iotests/118 @@ -277,7 +277,8 @@ class TestInitiallyFilled(GeneralChangeTestsBaseClass): 'file.driver=file', 'file.filename=%s' % old_img ]) if self.interface == 'scsi': - self.vm.add_device('virtio-scsi-pci') + self.vm.add_object('iothread,id=iothread0') + self.vm.add_device('virtio-scsi-pci,iothread=iothread0') self.vm.add_device('%s,drive=drive0,id=%s' % (interface_to_device_name(self.interface), self.device_name)) @@ -312,7 +313,8 @@ class TestInitiallyEmpty(GeneralChangeTestsBaseClass): if self.use_drive: self.vm.add_drive(None, 'media=%s' % self.media, 'none') if self.interface == 'scsi': - self.vm.add_device('virtio-scsi-pci') + self.vm.add_object('iothread,id=iothread0') + self.vm.add_device('virtio-scsi-pci,iothread=iothread0') self.vm.add_device('%s,%sid=%s' % (interface_to_device_name(self.interface), 'drive=drive0,' if self.use_drive else '', |