mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
yank: Remove dependency on qiochannel
Remove dependency on qiochannel by removing yank_generic_iochannel and letting migration and chardev use their own yank function for iochannel. Signed-off-by: Lukas Straub <lukasstraub2@web.de> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20ff143fc2db23e27cd41d38043e481376c9cec1.1616521341.git.lukasstraub2@web.de>
This commit is contained in:
committed by
Marc-André Lureau
parent
816f93b200
commit
1a92d6d500
@@ -28,6 +28,7 @@
|
||||
#include "io/channel-socket.h"
|
||||
#include "qemu/iov.h"
|
||||
#include "qemu/yank.h"
|
||||
#include "yank_functions.h"
|
||||
|
||||
|
||||
static ssize_t channel_writev_buffer(void *opaque,
|
||||
@@ -108,7 +109,7 @@ static int channel_close(void *opaque, Error **errp)
|
||||
if (object_dynamic_cast(OBJECT(ioc), TYPE_QIO_CHANNEL_SOCKET)
|
||||
&& OBJECT(ioc)->ref == 1) {
|
||||
yank_unregister_function(MIGRATION_YANK_INSTANCE,
|
||||
yank_generic_iochannel,
|
||||
migration_yank_iochannel,
|
||||
QIO_CHANNEL(ioc));
|
||||
}
|
||||
object_unref(OBJECT(ioc));
|
||||
|
||||
Reference in New Issue
Block a user