"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "migration/qemu-file-channel.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.

qemu-file-channel.c  (qemu-6.0.0-rc1.tar.xz):qemu-file-channel.c  (qemu-6.0.0-rc2.tar.xz)
skipping to change at line 31 skipping to change at line 31
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qemu-file-channel.h" #include "qemu-file-channel.h"
#include "qemu-file.h" #include "qemu-file.h"
#include "io/channel-socket.h" #include "io/channel-socket.h"
#include "qemu/iov.h" #include "qemu/iov.h"
#include "qemu/yank.h" #include "qemu/yank.h"
#include "yank_functions.h"
static ssize_t channel_writev_buffer(void *opaque, static ssize_t channel_writev_buffer(void *opaque,
struct iovec *iov, struct iovec *iov,
int iovcnt, int iovcnt,
int64_t pos, int64_t pos,
Error **errp) Error **errp)
{ {
QIOChannel *ioc = QIO_CHANNEL(opaque); QIOChannel *ioc = QIO_CHANNEL(opaque);
ssize_t done = 0; ssize_t done = 0;
struct iovec *local_iov = g_new(struct iovec, iovcnt); struct iovec *local_iov = g_new(struct iovec, iovcnt);
skipping to change at line 108 skipping to change at line 109
} }
static int channel_close(void *opaque, Error **errp) static int channel_close(void *opaque, Error **errp)
{ {
int ret; int ret;
QIOChannel *ioc = QIO_CHANNEL(opaque); QIOChannel *ioc = QIO_CHANNEL(opaque);
ret = qio_channel_close(ioc, errp); ret = qio_channel_close(ioc, errp);
if (object_dynamic_cast(OBJECT(ioc), TYPE_QIO_CHANNEL_SOCKET) if (object_dynamic_cast(OBJECT(ioc), TYPE_QIO_CHANNEL_SOCKET)
&& OBJECT(ioc)->ref == 1) { && OBJECT(ioc)->ref == 1) {
yank_unregister_function(MIGRATION_YANK_INSTANCE, yank_unregister_function(MIGRATION_YANK_INSTANCE,
yank_generic_iochannel, migration_yank_iochannel,
QIO_CHANNEL(ioc)); QIO_CHANNEL(ioc));
} }
object_unref(OBJECT(ioc)); object_unref(OBJECT(ioc));
return ret; return ret;
} }
static int channel_shutdown(void *opaque, static int channel_shutdown(void *opaque,
bool rd, bool rd,
bool wr, bool wr,
Error **errp) Error **errp)
 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)