This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] bug in usbback


James Harper wrote:
Also, a question on behaviour:

When we receive a reconfigure event, I assume that we should then read
'num-ports' and scan through each of the port-n values in xenstore. Is
there any guarantee that a device hasn't been unplugged and replugged
from the same port during the reconfiguration window? How should I
detect such a thing if the value of port-n hasn't changed? Should I then
probe each device? I'm doing this under Windows which is a bit more
picky and much less flexible...

"num-ports" is only read in creating the hcd. This value is unchanged
during reconfiguring state.

Reconfiguring is called from usb probe and disconnect callbacks.
So, reconfiguring is called every time unplugging and plugging are

However, connecting and disconnecting the devices at the same time
or frequent operations were not tested enough.

Do you think it's good idea that the method for the notification
of hotplug is switched from xenbus to RING (like pv network's rx_ring)?


Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>