mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
migration: split migration hooks out of QEMUFileOps
The QEMUFileOps struct contains the I/O subsystem callbacks and the migration stage hooks. Split the hooks out into a separate QEMUFileHooks struct to make it easier to refactor the I/O side of QEMUFile without affecting the hooks. Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <1461751518-12128-6-git-send-email-berrange@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
This commit is contained in:
parent
baf51e7739
commit
0436e09f96
4 changed files with 31 additions and 12 deletions
|
@ -33,6 +33,7 @@
|
|||
|
||||
struct QEMUFile {
|
||||
const QEMUFileOps *ops;
|
||||
const QEMUFileHooks *hooks;
|
||||
void *opaque;
|
||||
|
||||
int64_t bytes_xfer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue