From: Ian Campbell Subject: Re: [PATCH 6/8] libxl: allow a generation ID to be specified at domain creation Date: Fri, 27 Jun 2014 13:51:36 +0100 Message-ID: <1403873496.3169.24.camel@kazak.uk.xensource.com> References: <1403107977-13795-1-git-send-email-david.vrabel@citrix.com> <1403107977-13795-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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X0Vd0-0000q8-6K for xen-devel@lists.xenproject.org; Fri, 27 Jun 2014 12:51:42 +0000 In-Reply-To: <1403107977-13795-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 Wed, 2014-06-18 at 17:12 +0100, David Vrabel wrote: > Toolstacks may specify a VM generation ID using the u.hvm.ms_vm_genid > field in the libxl_domain_build_info structure, when creating a > domain. > > The toolstack is responsible for providing the correct generation ID > according to the Microsoft specification (e.g., generating new random > ones with libxl_ms_vm_genid_generate() as appropriate when restoring). > > Although the specification requires that a ACPI Notify event is raised > if the generation ID is changed, the generation ID is never changed > when the domain is in a state to receive such an event (it's either > newly created or suspended). > > Signed-off-by: David Vrabel I'm afraid I tried and failed to apply this because it broke the ocaml bindings: PYTHONPATH=/local/scratch/ianc/devel/committer-i686.git/tools/ocaml/libs/xl/../../../../tools/libxl python genwrap.py \ /local/scratch/ianc/devel/committer-i686.git/tools/ocaml/libs/xl/../../../../tools/libxl/libxl_types.idl \ _libxl_types.mli.in _libxl_types.ml.in _libxl_types.inc Parsing /local/scratch/ianc/devel/committer-i686.git/tools/ocaml/libs/xl/../../../../tools/libxl/libxl_types.idl Traceback (most recent call last): File "genwrap.py", line 528, in ml.write(gen_ocaml_ml(ty, False)) File "genwrap.py", line 207, in gen_ocaml_ml ku, union_type = gen_ocaml_keyedunions(f.type, interface, "\t") File "genwrap.py", line 142, in gen_ocaml_keyedunions s += gen_struct(f.type) File "genwrap.py", line 118, in gen_struct x = ocaml_instance_of_field(f) File "genwrap.py", line 111, in ocaml_instance_of_field return "%s : %s" % (munge_name(name), ocaml_type_of(f.type)) File "genwrap.py", line 81, in ocaml_type_of raise NotImplementedError("Unknown Builtin %s (%s)" % (ty.typename, type(ty))) NotImplementedError: Unknown Builtin libxl_ms_vm_genid () Sadly builtins need special handling in tools/ocaml/libs/xl/genwrap.py. Ian.