From: Tim Deegan Subject: Re: [PATCH 01/18] Nested Virtualization: tools Date: Fri, 16 Apr 2010 11:43:43 +0100 Message-ID: <20100416104343.GC31304@whitby.uk.xensource.com> References: <201004151422.36660.Christoph.Egger@amd.com> <20100416103652.GB31304@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <20100416103652.GB31304@whitby.uk.xensource.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: Christoph Egger Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org At 11:36 +0100 on 16 Apr (1271417812), Tim Deegan wrote: > At 13:22 +0100 on 15 Apr (1271337756), Christoph Egger wrote: > > diff -r 2d96bc60035c -r 0e6fd40c25bf xen/include/public/domctl.h > > --- a/xen/include/public/domctl.h > > +++ b/xen/include/public/domctl.h > > @@ -60,10 +60,13 @@ struct xen_domctl_createdomain { > > /* Should domain memory integrity be verifed by tboot during Sx? */ > > #define _XEN_DOMCTL_CDF_s3_integrity 2 > > #define XEN_DOMCTL_CDF_s3_integrity (1U<<_XEN_DOMCTL_CDF_s3_integrity) > > - uint32_t flags; > > /* Disable out-of-sync shadow page tables? */ > > #define _XEN_DOMCTL_CDF_oos_off 3 > > #define XEN_DOMCTL_CDF_oos_off (1U<<_XEN_DOMCTL_CDF_oos_off) > > + /* Enable nested HVM (only valid with XEN_DOMCTL_CDF_hvm_guest) */ > > +#define _XEN_DOMCTL_CDF_nestedhvm 4 > > +#define XEN_DOMCTL_CDF_nestedhvm (1U<<_XEN_DOMCTL_CDF_nestedhvm) > > + uint32_t flags; > > }; > > typedef struct xen_domctl_createdomain xen_domctl_createdomain_t; > > DEFINE_XEN_GUEST_HANDLE(xen_domctl_createdomain_t); > > Does this need its own hyperacll flag? Couldn't we just gate it on > whether the cpuid policy allows SVM? Actually, more generally: Keir, can you give us an opinion on which things like this belong in DOMCTL_CDF_ and which in HVM_PARAM_ (and which in their own hypercalls or not at all?) Tim. -- Tim Deegan Principal Software Engineer, XenServer Engineering Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)