mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 14:37:42 -07:00
iotests: Test commit with iothreads and ongoing I/O
This tests exercises graph locking, draining, and graph modifications with AioContext switches a lot. Amongst others, it serves as a regression test for bdrv_graph_wrlock() deadlocking because it is called with a locked AioContext and for AioContext handling in the NBD server. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20230517152834.277483-4-kwolf@redhat.com> Tested-by: Eric Blake <eblake@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
7c1f51bf38
commit
95fdd8db61
3 changed files with 58 additions and 6 deletions
|
|
@ -462,6 +462,10 @@ class QemuStorageDaemon:
|
|||
assert self._qmp is not None
|
||||
return self._qmp.cmd(cmd, args)
|
||||
|
||||
def get_qmp(self) -> QEMUMonitorProtocol:
|
||||
assert self._qmp is not None
|
||||
return self._qmp
|
||||
|
||||
def stop(self, kill_signal=15):
|
||||
self._p.send_signal(kill_signal)
|
||||
self._p.wait()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue