From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 1/3] RFC: libxl: API changes re domain type (and keyed union semantics) Date: Fri, 15 Jul 2011 13:45:35 +0100 Message-ID: <1310733935.20648.8.camel@zakaz.uk.xensource.com> References: <1310495823-27077-1-git-send-email-ian.jackson@eu.citrix.com> <1310495823-27077-2-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1310495823-27077-2-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, 2011-07-12 at 19:37 +0100, Ian Jackson wrote: > > @@ -158,9 +158,9 @@ libxl_domain_build_info = > Struct("domain_build_info",[ > ("shadow_memkb", uint32), > ("disable_migrate", bool), > ("cpuid", libxl_cpuid_policy_list), > - ("hvm", bool), > - ("u", KeyedUnion(None, "hvm", > - [("hvm", "%s", Struct(None, > + ("type", libxl_domain_type), > + ("u", KeyedUnion(None, "type", > + [("hvm", Struct(None, > [("firmware", string), > ("pae", bool), > ("apic", bool), > @@ -173,7 +173,7 @@ libxl_domain_build_info = > Struct("domain_build_info",[ > ("timer_mode", integer), > ("nested_hvm", bool), > ])), > - ("pv", "!%s", Struct(None, > + ("pv", Struct(None, > [("kernel", > libxl_file_reference), > ("slack_memkb", uint32), > ("bootloader", string), I've just found a partially complete patch in my series which does pretty much this. Is it worth my resurrecting it or are you also partially there? Ian.