migration: introduce a new QEMUFile impl based on QIOChannel
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 27 Apr 2016 10:04:58 +0000 (11:04 +0100)
committerAmit Shah <amit.shah@redhat.com>
Thu, 26 May 2016 06:01:24 +0000 (11:31 +0530)
commita9cfeb33bb23a8104eeeac5769165476cbf13fe3
tree634d79f31ad451767eeba0c928924e64d8db195f
parent9e4d2b98ee98f4cee50d671e500eceeefa751ee0
migration: introduce a new QEMUFile impl based on QIOChannel

Introduce a new QEMUFile implementation that is based on
the QIOChannel objects. This impl is different from existing
impls in that there is no file descriptor that can be made
available, as some channels may be based on higher level
protocols such as TLS.

Although the QIOChannel based implementation can trivially
provide a bi-directional stream, initially we have separate
functions for opening input & output directions to fit with
the expectation of the current QEMUFile interface.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1461751518-12128-9-git-send-email-berrange@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
include/migration/qemu-file.h
migration/Makefile.objs
migration/qemu-file-channel.c [new file with mode: 0644]