Patchwork [RFC,RDMA,support,v5:,10/12] new header file prototypes for savevm.c

login
register
mail settings
Submitter mrhines@linux.vnet.ibm.com
Date April 9, 2013, 3:04 a.m.
Message ID <1365476681-31593-11-git-send-email-mrhines@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/234947/
State New
Headers show

Comments

mrhines@linux.vnet.ibm.com - April 9, 2013, 3:04 a.m.
From: "Michael R. Hines" <mrhines@us.ibm.com>


Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
---
 include/migration/migration.h |    3 +++
 include/migration/qemu-file.h |    3 +++
 2 files changed, 6 insertions(+)
Paolo Bonzini - April 9, 2013, 4:43 p.m.
Il 09/04/2013 05:04, mrhines@linux.vnet.ibm.com ha scritto:
> From: "Michael R. Hines" <mrhines@us.ibm.com>
> 
> 
> Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
> ---
>  include/migration/migration.h |    3 +++
>  include/migration/qemu-file.h |    3 +++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/include/migration/migration.h b/include/migration/migration.h
> index e2acec6..40de049 100644
> --- a/include/migration/migration.h
> +++ b/include/migration/migration.h
> @@ -127,4 +127,7 @@ 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);
>  #endif
> diff --git a/include/migration/qemu-file.h b/include/migration/qemu-file.h
> index 623c434..4ee0ed2 100644
> --- a/include/migration/qemu-file.h
> +++ b/include/migration/qemu-file.h
> @@ -80,6 +80,9 @@ void qemu_put_byte(QEMUFile *f, int v);
>   * The buffer should be available till it is sent asynchronously.
>   */
>  void qemu_put_buffer_async(QEMUFile *f, const uint8_t *buf, int size);
> +void *qemu_file_ops_are(QEMUFile *f, const QEMUFileOps *ops);
> +bool qemu_file_mode_is_not_valid(const char * mode);
> +void qemu_file_update_position(QEMUFile *f, int64_t inc);
>  
>  static inline void qemu_put_ubyte(QEMUFile *f, unsigned int v)
>  {
> 

This should be placed together with the patch that adds them (and in
turn the patch that adds them should be before the patch that uses them).

Paolo

Patch

diff --git a/include/migration/migration.h b/include/migration/migration.h
index e2acec6..40de049 100644
--- a/include/migration/migration.h
+++ b/include/migration/migration.h
@@ -127,4 +127,7 @@  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);
 #endif
diff --git a/include/migration/qemu-file.h b/include/migration/qemu-file.h
index 623c434..4ee0ed2 100644
--- a/include/migration/qemu-file.h
+++ b/include/migration/qemu-file.h
@@ -80,6 +80,9 @@  void qemu_put_byte(QEMUFile *f, int v);
  * The buffer should be available till it is sent asynchronously.
  */
 void qemu_put_buffer_async(QEMUFile *f, const uint8_t *buf, int size);
+void *qemu_file_ops_are(QEMUFile *f, const QEMUFileOps *ops);
+bool qemu_file_mode_is_not_valid(const char * mode);
+void qemu_file_update_position(QEMUFile *f, int64_t inc);
 
 static inline void qemu_put_ubyte(QEMUFile *f, unsigned int v)
 {