[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] Add a qemu feature flag for unix socket migration.



On Wed, Sep 30, 2009 at 01:27:19PM +0200, Chris Lalancette wrote:
> Signed-off-by: Chris Lalancette <clalance redhat com>
> ---
>  src/qemu/qemu_conf.c |    2 ++
>  src/qemu/qemu_conf.h |    1 +
>  2 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
> index 2db38df..ac63570 100644
> --- a/src/qemu/qemu_conf.c
> +++ b/src/qemu/qemu_conf.c
> @@ -892,6 +892,8 @@ static unsigned int qemudComputeCmdFlags(const char *help,
>      if (version >= 10000) {
>          flags |= QEMUD_CMD_FLAG_MIGRATE_QEMU_TCP;
>          flags |= QEMUD_CMD_FLAG_MIGRATE_QEMU_EXEC;
> +        if (version >= 12000)
> +            flags |= QEMUD_CMD_FLAG_MIGRATE_QEMU_UNIX;
>      } else if (kvm_version >= 79) {
>          flags |= QEMUD_CMD_FLAG_MIGRATE_QEMU_TCP;
>          if (kvm_version >= 80)
> diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h
> index 96b7c0c..f9a970f 100644
> --- a/src/qemu/qemu_conf.h
> +++ b/src/qemu/qemu_conf.h
> @@ -70,6 +70,7 @@ enum qemud_cmd_flags {
>      QEMUD_CMD_FLAG_MEM_PATH      = (1 << 18), /* mmap'ped guest backing supported */
>      QEMUD_CMD_FLAG_DRIVE_SERIAL  = (1 << 19), /* -driver serial=  available */
>      QEMUD_CMD_FLAG_XEN_DOMID     = (1 << 20), /* -xen-domid (new style xen integration) */
> +    QEMUD_CMD_FLAG_MIGRATE_QEMU_UNIX = (1 << 21), /* Does qemu support unix domain sockets for migration? */
>  };
>  
>  /* Main driver state */

ACK

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]