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 ...
cheers,
Gerd