diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2017-12-06 14:45:49 +0000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-12-19 10:25:09 +0000 |
commit | ca00bbb153d03c5338d8c8136812163f463f841e (patch) | |
tree | f19554fdfcb729ab19676835cafea1bb0069ccd5 /migration/channel.h | |
parent | fbcc6923b00c2b468a7470fec7863f0403a65736 (diff) |
blockdev: add x-blockdev-set-iothread testing command
Currently there is no easy way for iotests to ensure that a BDS is bound
to a particular IOThread. Normally the virtio-blk device calls
blk_set_aio_context() when dataplane is enabled during guest driver
initialization. This never happens in iotests since -machine
accel=qtest means there is no guest activity (including device driver
initialization).
This patch adds a QMP command to explicitly assign IOThreads in test
cases. See qapi/block-core.json for a description of the command.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20171206144550.22295-9-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'migration/channel.h')
0 files changed, 0 insertions, 0 deletions