[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 10/25] libxl: create vIOMMU during domain construction
On Tue, Jul 04, 2017 at 11:46:18AM +0100, Julien Grall wrote: > Hi, > > On 06/29/2017 06:50 AM, Lan Tianyu wrote: > > diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c > > index bffbc45..55119e2 100644 > > --- a/tools/libxl/libxl_create.c > > +++ b/tools/libxl/libxl_create.c > > @@ -557,6 +557,12 @@ int libxl__domain_make(libxl__gc *gc, > > libxl_domain_config *d_config, > > } > > } > > + rc = libxl__arch_create_viommu(gc, d_config, *domid); > > + if (rc < 0) { > > + LOGED(ERROR, *domid, "create vIOMMU fail"); > > + goto out; > > + } > > + > > Rather than creating yet another arch helper, would not it be better to have > a "post domain creation helper" that will do anything arch specific related > (i.e creating vIOMMU, save config...)? > Yes if this can be done this is preferable -- I'm not yet sure if the creation of viommu needs to be done at a particular point. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |