[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH RDMA support v1: 05/13] accessor function protot
From: |
mrhines |
Subject: |
[Qemu-devel] [RFC PATCH RDMA support v1: 05/13] accessor function prototypes for new QEMUFileOps hooks |
Date: |
Wed, 10 Apr 2013 18:28:13 -0400 |
From: "Michael R. Hines" <address@hidden>
These are just the protytpes of the accessor methods used by
arch_init.c which invoke functions inside savevm.c to call
out to the hooks that may (or may not) have been overridden
inside of QEMUFileOps.
The actual definitions come later in the patch series.
Signed-off-by: Michael R. Hines <address@hidden>
---
include/migration/migration.h | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/include/migration/migration.h b/include/migration/migration.h
index e2acec6..a5222f5 100644
--- a/include/migration/migration.h
+++ b/include/migration/migration.h
@@ -21,6 +21,7 @@
#include "qapi/error.h"
#include "migration/vmstate.h"
#include "qapi-types.h"
+#include "exec/cpu-common.h"
struct MigrationParams {
bool blk;
@@ -75,6 +76,10 @@ void fd_start_incoming_migration(const char *path, Error
**errp);
void fd_start_outgoing_migration(MigrationState *s, const char *fdname, Error
**errp);
+void rdma_start_outgoing_migration(void *opaque, const char *host_port, Error
**errp);
+
+void rdma_start_incoming_migration(const char * host_port, Error **errp);
+
void migrate_fd_error(MigrationState *s);
void migrate_fd_connect(MigrationState *s);
@@ -127,4 +132,22 @@ int migrate_use_xbzrle(void);
int64_t migrate_xbzrle_cache_size(void);
int64_t xbzrle_cache_resize(int64_t new_size);
+
+bool migrate_check_for_zero(void);
+bool migrate_chunk_register_destination(void);
+
+void ram_control_before_iterate(QEMUFile *f, uint32_t flags);
+void ram_control_after_iterate(QEMUFile *f, uint32_t flags);
+void ram_control_load_hook(QEMUFile *f, uint32_t flags);
+size_t ram_control_save_page(QEMUFile *f,
+ ram_addr_t block_offset,
+ ram_addr_t offset, int cont,
+ size_t size, bool zero);
+
+/*
+ * Prototype used by both arch_init.c and migration_rdma.c
+ * because of RAM_SAVE_FLAG_HOOK
+ */
+int qemu_rdma_registration_start(QEMUFile *f, void *opaque, uint32_t flags);
+
#endif
--
1.7.10.4
- [Qemu-devel] [RFC PATCH RDMA support v7: 00/13] rdma cleanup and reordering, mrhines, 2013/04/10
- [Qemu-devel] [RFC PATCH RDMA support v1: 01/13] introduce qemu_ram_foreach_block(), mrhines, 2013/04/10
- [Qemu-devel] [RFC PATCH RDMA support v1: 05/13] accessor function prototypes for new QEMUFileOps hooks,
mrhines <=
- [Qemu-devel] [RFC PATCH RDMA support v1: 06/13] implementation of new QEMUFileOps hooks, mrhines, 2013/04/10
- [Qemu-devel] [RFC PATCH RDMA support v1: 07/13] introduce capability for dynamic chunk registration, mrhines, 2013/04/10
- [Qemu-devel] [RFC PATCH RDMA support v1: 04/13] update QEMUFileOps with new hooks, mrhines, 2013/04/10
- [Qemu-devel] [RFC PATCH RDMA support v1: 08/13] default chunk registration to true, mrhines, 2013/04/10
- [Qemu-devel] [RFC PATCH RDMA support v1: 10/13] introduce new command migrate_check_for_zero, mrhines, 2013/04/10