summary refs log tree commit diff stats
path: root/hw/hyperv/hyperv_testdev.c
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2023-09-11 14:13:18 -0300
committerPeter Xu <peterx@redhat.com>2024-01-29 11:02:12 +0800
commit0a5d1108aba6308752a82201a441f957e5937211 (patch)
tree53e0afb7bd75657a1e400cef606e054412c642fd /hw/hyperv/hyperv_testdev.c
parent079687e4182242c65055c5ac438ce4f61c20553e (diff)
downloadfocaccia-qemu-0a5d1108aba6308752a82201a441f957e5937211.tar.gz
focaccia-qemu-0a5d1108aba6308752a82201a441f957e5937211.zip
migration/yank: Use channel features
Stop using outside knowledge about the io channels when registering
yank functions. Query for features instead.

The yank method for all channels used with migration code currently is
to call the qio_channel_shutdown() function, so query for
QIO_CHANNEL_FEATURE_SHUTDOWN. We could add a separate feature in the
future for indicating whether a channel supports yanking, but that
seems overkill at the moment.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20230911171320.24372-9-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'hw/hyperv/hyperv_testdev.c')
0 files changed, 0 insertions, 0 deletions