From: Chunyan Liu Subject: [PATCH RFC V2 0/5] pvusb toolstack work Date: Mon, 19 Jan 2015 16:28:46 +0800 Message-ID: <1421656131-19366-1-git-send-email-cyliu@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: lars.kurth@citrix.com, ian.campbell@citrix.com, george.dunlap@eu.citrix.com, Chunyan Liu , ian.jackson@citrix.com, caobosimon@gmail.com List-Id: xen-devel@lists.xenproject.org This patch series is based on Simon's work. Since there is no progress after last August, I hope we can make this work proceed. Any comment will be very appreciated. It adds pvusb toolstack implementation, with pvusb kernel side work, one could attach/detach a usb device to guest. Changes to Simon's work: - fix format issues - fix bind/unbind if usb device has multiple interfaces - add codes to update json config when hot add a usb device - reorganize and update libxl code to make it more readable. - split libxl code into several patches for easier review. - remove many unused APIs in libxl_internal.h and libxl.h - fix xl command implementation issues (many inconsistences between cmdtable and cmdimplementation) and update some command syntax - remove usb-assigned-list Known issues in testing: - specify 'usb' in vm config file, then create vm, usb controller state keeps in not connected; same result when hot add a usb device in vm booting process. But hot adding a usb device after vm is booted, works very well. - hot adding a usb device to 2.0 usb controller, usb device not working well in guest. But adding a usb device to 1.x usb controller, works well. These issues are also found with old xend toolstack. Simon's Patches: http://lists.xen.org/archives/html/xen-devel/2014-08/msg01203.html Chunyan Liu (5): libxl: add pvusb definitions libxl: export some functions for pvusb use libxl: add pvusb API xl: add pvusb commands domcreate: support pvusb in configuration file tools/libxl/Makefile | 2 +- tools/libxl/libxl.c | 8 +- tools/libxl/libxl.h | 58 ++ tools/libxl/libxl_create.c | 41 +- tools/libxl/libxl_internal.h | 11 + tools/libxl/libxl_types.idl | 58 +- tools/libxl/libxl_types_internal.idl | 1 + tools/libxl/libxl_usb.c | 1277 ++++++++++++++++++++++++++++++++++ tools/libxl/libxlu_cfg_y.c | 464 ++++++------ tools/libxl/libxlu_cfg_y.h | 38 +- tools/libxl/xl.h | 6 + tools/libxl/xl_cmdimpl.c | 296 +++++++- tools/libxl/xl_cmdtable.c | 30 + 13 files changed, 2058 insertions(+), 232 deletions(-) create mode 100644 tools/libxl/libxl_usb.c -- 1.8.4.5