[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxl_pci: check that host device is assignable before adding to the domain
> -----Original Message----- > From: Ian Campbell [mailto:Ian.Campbell@xxxxxxxxxx] > Sent: Tuesday, January 17, 2012 9:16 AM > To: djmagee@xxxxxxxxxxxx > Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Ian Jackson; Stefano Stabellini > Subject: RE: [Xen-devel] [PATCH] libxl_pci: check that host device is > assignable before adding to the domain > > Please don't top post. > > On Tue, 2012-01-17 at 14:05 +0000, djmagee@xxxxxxxxxxxx wrote: > > That was my first thought, but this was also the first thing in libxl > > I touched and wasn't sure what would happen if I ended up nesting > > GC_INITs. If it's safe to do then I can call > > libxl_device_pci_list_assignable, otherwise I'd have to pull the meat > > out and put it in another function. What's the best way to do it? > > You can use libxl__gc_owner(gc) (or the helpful CTX macro) to get a ctx > from a gc which you use to call an externally visible function from > within libxl -- it'll do the right thing (TM). Cool, I'll send an updated patch along today. Doug > > Ian. > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |