"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "migration/multifd.c" between
qemu-6.0.0-rc1.tar.xz and qemu-6.0.0-rc2.tar.xz

About: QEMU is a generic machine/processor emulator and virtualizer. Release candidate.

multifd.c  (qemu-6.0.0-rc1.tar.xz):multifd.c  (qemu-6.0.0-rc2.tar.xz)
skipping to change at line 30 skipping to change at line 30
#include "ram.h" #include "ram.h"
#include "migration.h" #include "migration.h"
#include "socket.h" #include "socket.h"
#include "tls.h" #include "tls.h"
#include "qemu-file.h" #include "qemu-file.h"
#include "trace.h" #include "trace.h"
#include "multifd.h" #include "multifd.h"
#include "qemu/yank.h" #include "qemu/yank.h"
#include "io/channel-socket.h" #include "io/channel-socket.h"
#include "yank_functions.h"
/* Multiple fd's */ /* Multiple fd's */
#define MULTIFD_MAGIC 0x11223344U #define MULTIFD_MAGIC 0x11223344U
#define MULTIFD_VERSION 1 #define MULTIFD_VERSION 1
typedef struct { typedef struct {
uint32_t magic; uint32_t magic;
uint32_t version; uint32_t version;
unsigned char uuid[16]; /* QemuUUID */ unsigned char uuid[16]; /* QemuUUID */
skipping to change at line 992 skipping to change at line 993
qemu_sem_post(&p->sem_sync); qemu_sem_post(&p->sem_sync);
qemu_thread_join(&p->thread); qemu_thread_join(&p->thread);
} }
} }
for (i = 0; i < migrate_multifd_channels(); i++) { for (i = 0; i < migrate_multifd_channels(); i++) {
MultiFDRecvParams *p = &multifd_recv_state->params[i]; MultiFDRecvParams *p = &multifd_recv_state->params[i];
if (object_dynamic_cast(OBJECT(p->c), TYPE_QIO_CHANNEL_SOCKET) if (object_dynamic_cast(OBJECT(p->c), TYPE_QIO_CHANNEL_SOCKET)
&& OBJECT(p->c)->ref == 1) { && OBJECT(p->c)->ref == 1) {
yank_unregister_function(MIGRATION_YANK_INSTANCE, yank_unregister_function(MIGRATION_YANK_INSTANCE,
yank_generic_iochannel, migration_yank_iochannel,
QIO_CHANNEL(p->c)); QIO_CHANNEL(p->c));
} }
object_unref(OBJECT(p->c)); object_unref(OBJECT(p->c));
p->c = NULL; p->c = NULL;
qemu_mutex_destroy(&p->mutex); qemu_mutex_destroy(&p->mutex);
qemu_sem_destroy(&p->sem_sync); qemu_sem_destroy(&p->sem_sync);
g_free(p->name); g_free(p->name);
p->name = NULL; p->name = NULL;
multifd_pages_clear(p->pages); multifd_pages_clear(p->pages);
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)