[libvirt] [PATCH 5/6] Added domainMigrateStartPostCopy in remote driver

Jiri Denemark jdenemar at redhat.com
Wed Sep 24 13:08:13 UTC 2014


On Tue, Sep 23, 2014 at 16:10:00 +0200, Cristian Klein wrote:
> Signed-off-by: Cristian Klein <cristian.klein at cs.umu.se>
> ---
>  src/remote/remote_driver.c   |  1 +
>  src/remote/remote_protocol.x | 12 +++++++++++-
>  2 files changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
> index 75a3a7b..9a6a974 100644
> --- a/src/remote/remote_driver.c
> +++ b/src/remote/remote_driver.c
> @@ -8152,6 +8152,7 @@ static virDriver remote_driver = {
>      .nodeGetFreePages = remoteNodeGetFreePages, /* 1.2.6 */
>      .connectGetDomainCapabilities = remoteConnectGetDomainCapabilities, /* 1.2.7 */
>      .connectGetAllDomainStats = remoteConnectGetAllDomainStats, /* 1.2.8 */
> +    .domainMigrateStartPostCopy = remoteDomainMigrateStartPostCopy, /* 1.2.9 */
>  };
>  
>  static virNetworkDriver network_driver = {
> diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
> index a4ca0c3..c443636 100644
> --- a/src/remote/remote_protocol.x
> +++ b/src/remote/remote_protocol.x
> @@ -3090,6 +3090,10 @@ struct remote_connect_get_all_domain_stats_args {
>  struct remote_connect_get_all_domain_stats_ret {
>      remote_domain_stats_record retStats<REMOTE_DOMAIN_LIST_MAX>;
>  };
> +
> +struct remote_domain_migrate_start_post_copy_args {
> +    remote_nonnull_domain dom;
> +};
>  /*----- Protocol. -----*/
>  
>  /* Define the program number, protocol version and procedure numbers here. */
> @@ -5472,5 +5476,11 @@ enum remote_procedure {
>       * @generate: both
>       * @acl: domain:block_write
>       */
> -    REMOTE_PROC_DOMAIN_BLOCK_COPY = 345
> +    REMOTE_PROC_DOMAIN_BLOCK_COPY = 345,
> +
> +    /**
> +     * @generate: both
> +     * @acl: domain:migrate
> +     */
> +    REMOTE_PROC_DOMAIN_MIGRATE_START_POST_COPY = 346
>  };

This is pretty straightforward and you could have just squashed this
patch into "Added new public API virDomainMigrateStartPostCopy".

Jirka




More information about the libvir-list mailing list