Re: [PATCH] xenapi: Update ID after starting a domain

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

 



On 07/30/2010 09:24 AM, Matthias Bolte wrote:
> ---
>  src/xenapi/xenapi_driver.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c
> index e385648..2262cef 100644
> --- a/src/xenapi/xenapi_driver.c
> +++ b/src/xenapi/xenapi_driver.c
> @@ -1459,6 +1459,7 @@ xenapiDomainCreateWithFlags (virDomainPtr dom, unsigned int flags)
>      xen_vm_set *vms;
>      xen_vm vm;
>      xen_session *session = ((struct _xenapiPrivate *)(dom->conn->privateData))->session;
> +    int64_t domid = -1;
>  
>      virCheckFlags(0, -1);
>  
> @@ -1475,6 +1476,10 @@ xenapiDomainCreateWithFlags (virDomainPtr dom, unsigned int flags)
>              xen_vm_set_free(vms);
>              return -1;
>          }
> +
> +        xen_vm_get_domid(session, &domid, vm);
> +        dom->id = domid;
> +

ACK.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]