"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "util/yank.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.

yank.c  (qemu-6.0.0-rc1.tar.xz):yank.c  (qemu-6.0.0-rc2.tar.xz)
skipping to change at line 18 skipping to change at line 18
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu/thread.h" #include "qemu/thread.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include "qemu/lockable.h" #include "qemu/lockable.h"
#include "qapi/qapi-commands-yank.h" #include "qapi/qapi-commands-yank.h"
#include "qapi/qapi-visit-yank.h" #include "qapi/qapi-visit-yank.h"
#include "qapi/clone-visitor.h" #include "qapi/clone-visitor.h"
#include "io/channel.h"
#include "qemu/yank.h" #include "qemu/yank.h"
struct YankFuncAndParam { struct YankFuncAndParam {
YankFn *func; YankFn *func;
void *opaque; void *opaque;
QLIST_ENTRY(YankFuncAndParam) next; QLIST_ENTRY(YankFuncAndParam) next;
}; };
struct YankInstanceEntry { struct YankInstanceEntry {
YankInstance *instance; YankInstance *instance;
skipping to change at line 154 skipping to change at line 153
if (func_entry->func == func && func_entry->opaque == opaque) { if (func_entry->func == func && func_entry->opaque == opaque) {
QLIST_REMOVE(func_entry, next); QLIST_REMOVE(func_entry, next);
g_free(func_entry); g_free(func_entry);
return; return;
} }
} }
abort(); abort();
} }
void yank_generic_iochannel(void *opaque)
{
QIOChannel *ioc = QIO_CHANNEL(opaque);
qio_channel_shutdown(ioc, QIO_CHANNEL_SHUTDOWN_BOTH, NULL);
}
void qmp_yank(YankInstanceList *instances, void qmp_yank(YankInstanceList *instances,
Error **errp) Error **errp)
{ {
YankInstanceList *tail; YankInstanceList *tail;
YankInstanceEntry *entry; YankInstanceEntry *entry;
YankFuncAndParam *func_entry; YankFuncAndParam *func_entry;
QEMU_LOCK_GUARD(&yank_lock); QEMU_LOCK_GUARD(&yank_lock);
for (tail = instances; tail; tail = tail->next) { for (tail = instances; tail; tail = tail->next) {
entry = yank_find_entry(tail->value); entry = yank_find_entry(tail->value);
 End of changes. 2 change blocks. 
8 lines changed or deleted 0 lines changed or added

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