freebsd-dev/sys/dev/xen/xenstore
Roger Pau Monné f79cdf2998 xen: fix xenstore dev
Xenstore user-space device has two problems currently:
 - It does not correctly handle concurrent clients, because it's storing
   each client data in dev->si_drv1.
 - It does not correctly free this data when the client closes the device.

In order to solve both of this issues store the per-client data using
cdevpriv, which also comes with a hook in order to perform the necessary
cleanup on device close.

While there also make the device eternal.

Sponsored by: Citrix Systems R&D
Reported and Tested by: thompsa
MFC after: 2 weeks
2015-02-16 09:53:43 +00:00
..
xenstore_dev.c xen: fix xenstore dev 2015-02-16 09:53:43 +00:00
xenstore.c xen: convert the xenstore user-space char device to a newbus device 2014-09-30 17:31:04 +00:00
xenstored_dev.c xen: add xenstored user-space device 2014-09-30 17:37:26 +00:00