Refactor QEMUFile for live migration
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 29 Sep 2008 16:25:16 +0000 (16:25 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 29 Sep 2008 16:25:16 +0000 (16:25 +0000)
commit1ea8d5dc595d3e28d09cf8dbe85b5fc476e6fd92
tree12331f5ba39f90c3ba48c9a775bc28a62217335f
parent4c951aa0a0a3a8bded6b210c57ad937b60c380a8
Refactor QEMUFile for live migration

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.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5352 c046a42c-6fe2-441c-8c8c-71466251a162
hw/hw.h
vl.c