[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2/2] xen: add qemu device for each pvusb backend
On 27/09/16 11:08, Gerd Hoffmann wrote: > Hi, > >> struct usbback_info { >> struct XenDevice xendev; /* must be first */ >> + char id[24]; >> + struct USBBACKDevice *dev; >> USBBus bus; >> void *urb_sring; >> void *conn_sring; >> @@ -116,6 +124,10 @@ struct usbback_info { >> QEMUBH *bh; >> }; >> >> +typedef struct USBBACKDevice { >> + DeviceState qdev; >> +} USBBACKDevice; > > Hmm, I think the xen core needs better QOM support ... > > struct XenDevice should have a DeviceState element, so it can be used as > device object directly instead of attaching a device object like > this ... Hmm, interesting idea. The device object could even be added in Xen common code if the backend is indicating the need for it via a special flag/field. I'll have a try. Juergen _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |