Re: [Qemu-devel] [PATCH 1/10] Refactor QEMUFile for live migration

Blue Swirl
2008-09-12T15:40:36Z

On 9/9/08, Anthony Liguori <aliguori@us.ibm.com> wrote:
> To support live migration, we override QEMUFile so that instead of writing to
> disk, the save/restore state happens over a network connection.
>
> This patch makes QEMUFile read/write operations function pointers so that we
> can override them for live migration.

> +typedef struct QEMUFileUnix
> +{
> + FILE *outfile;
> +} QEMUFileUnix;

I'd rather use name stdio/StdIO instead of Unix, this code is not Unix
dependent.