]> xenbits.xensource.com Git - xen.git/commit
libxl: Do not trust frontend for vusb
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 5 May 2016 15:17:18 +0000 (16:17 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 2 Jun 2016 14:53:28 +0000 (15:53 +0100)
commit03814de1d2ecdabedabceb8e728d934a632a43b9
treeb3dbe28894bfa3a58e200bcc82eec30a24840405
parent89ef5dbc16fd21f0a6196b25fbef33a1db4b0779
libxl: Do not trust frontend for vusb

Do not use the frontend directory for enumerating the vusb devices;
since the frontend could delete them, this could result in devices
being lost and not torn down, etc.  Instead, use the /libxl directory
for enumeration.  So:

* Replace vusb_be_from_xs_fe with vusb_be_from_xs_libxl
* Change the call sites
* Change various places that use the dompath to use libxl_dom_path
* Rename some `path' variables appropriate (to spot any missed updates)
* Parse backend domid out of backend path rather than reading it from
  the frontend (several places)

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
---
v3: Whitespace adjustment to parameter list indentation
v2: New patch, following rebase
tools/libxl/libxl_pvusb.c