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@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to