From: Ian Campbell Subject: Re: [PATCH 6/8] libxl: allow a generation ID to be specified at domain creation Date: Wed, 18 Jun 2014 12:33:53 +0100 Message-ID: <1403091233.25575.13.camel@kazak.uk.xensource.com> References: <1402585478-3389-1-git-send-email-david.vrabel@citrix.com> <1402585478-3389-7-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WxE89-0001oq-IQ for xen-devel@lists.xenproject.org; Wed, 18 Jun 2014 11:34:17 +0000 In-Reply-To: <1402585478-3389-7-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: xen-devel@lists.xenproject.org, Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Thu, 2014-06-12 at 16:04 +0100, David Vrabel wrote: > diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl > index f0f6e34..1c5e687 100644 > --- a/tools/libxl/libxl_types.idl > +++ b/tools/libxl/libxl_types.idl > @@ -371,6 +371,8 @@ libxl_domain_build_info = Struct("domain_build_info",[ > ("xen_platform_pci", libxl_defbool), > ("usbdevice_list", libxl_string_list), > ("vendor_device", libxl_vendor_device), > + # See libxl_ms_vm_genid_generate() > + ("ms_vm_genid", libxl_uuid), When we discussed this IRL I thought we had decided that this should be a new libxl_ms_vm_genid type, effectively a typedef of uint8_t[16], similar to libxl_mac and libxl_hwcap[[0]]. This would avoid any suggestion that one of the more structured forms of UUID would be appropriate here. I appreciate that you tried to address that with the comment, but I fear it might not be terribly effective in practice... Other than that the implementation here all looks ok to me. Ian. [[0]] I suppose we are getting to close to wanting idl.py to contains Bytes(n) as a generic type. I won't ask you to do that though.