From: Mark Williamson Subject: [PATCH][TOOLS] Remove references to USB paravirt driver Date: Tue, 11 Dec 2007 01:00:18 +0000 Message-ID: <200712110100.19491.mark.williamson@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_jEeXHTa8OanTrh4" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_jEeXHTa8OanTrh4 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline There's dead code in the tools which was originally used for setting up the USB paravirt drivers. Since these are long gone, this patch removes those references. This shouldn't affect the operations qemu USB passthrough, which follows different paths, although I haven't tried it myself. Should be safe for 3.2 but I can resubmit after if preferred. Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! --Boundary-00=_jEeXHTa8OanTrh4 Content-Type: all/allfiles; name="remove-usb-paravirt.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="remove-usb-paravirt.patch" # HG changeset patch # User mark.williamson@cl.cam.ac.uk # Date 1197164904 0 # Node ID e1f1250c1d2c34f3a1908753c1752e7ec65b36a9 # Parent baf90ee3c1dab65f4a386521be6e108920622866 [TOOLS] Remove references to USB paravirt driver. Doesn't affect qemu usb args. Some relics in the control tools still refer to the USB paravirt driver. Remove this as it's dead code and is in the history for anyone really interested. The Qemu device model has its own USB configuration, which should still work. Signed-off-by: Mark Williamson Signed-off-by: Mark Williamson diff -r baf90ee3c1da -r e1f1250c1d2c tools/python/xen/xend/XendDevices.py --- a/tools/python/xen/xend/XendDevices.py Thu Dec 06 13:56:00 2007 +0000 +++ b/tools/python/xen/xend/XendDevices.py Sun Dec 09 01:48:24 2007 +0000 @@ -19,7 +19,7 @@ # A collection of DevControllers # -from xen.xend.server import blkif, netif, tpmif, pciif, iopif, irqif, usbif, vfbif +from xen.xend.server import blkif, netif, tpmif, pciif, iopif, irqif, vfbif from xen.xend.server.BlktapController import BlktapController from xen.xend.server.ConsoleController import ConsoleController @@ -41,7 +41,6 @@ class XendDevices: 'pci': pciif.PciController, 'ioports': iopif.IOPortsController, 'irq': irqif.IRQController, - 'usb': usbif.UsbifController, 'tap': BlktapController, 'vfb': vfbif.VfbifController, 'vkbd': vfbif.VkbdifController, diff -r baf90ee3c1da -r e1f1250c1d2c tools/python/xen/xend/server/usbif.py --- a/tools/python/xen/xend/server/usbif.py Thu Dec 06 13:56:00 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ -#============================================================================ -# This library is free software; you can redistribute it and/or -# modify it under the terms of version 2.1 of the GNU Lesser General Public -# License as published by the Free Software Foundation. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -#============================================================================ -# Copyright (C) 2004 Mike Wray -# Copyright (C) 2004 Intel Research Cambridge -# Copyright (C) 2004 Mark Williamson -# Copyright (C) 2005 XenSource Ltd -#============================================================================ - - -"""Support for virtual USB hubs. -""" - -from xen.xend.server.DevController import DevController - - -class UsbifController(DevController): - """USB device interface controller. Handles all USB devices - for a domain. - """ - - def __init__(self, vm): - """Create a USB device controller. - """ - DevController.__init__(self, vm) - - - def getDeviceDetails(self, _): - """@see DevController.getDeviceDetails""" - - return (self.allocateDeviceID(), {}, {}) diff -r baf90ee3c1da -r e1f1250c1d2c tools/python/xen/xm/create.py --- a/tools/python/xen/xm/create.py Thu Dec 06 13:56:00 2007 +0000 +++ b/tools/python/xen/xm/create.py Sun Dec 09 01:48:24 2007 +0000 @@ -309,11 +309,6 @@ gopts.var('irq', val='IRQ', For example 'irq=7'. This option may be repeated to add more than one IRQ.""") -gopts.var('usbport', val='PATH', - fn=append_value, default=[], - use="""Add a physical USB port to a domain, as specified by the path - to that port. This option may be repeated to add more than one port.""") - gopts.var('vfb', val="type={vnc,sdl},vncunused=1,vncdisplay=N,vnclisten=ADDR,display=DISPLAY,xauthority=XAUTHORITY,vncpasswd=PASSWORD", fn=append_value, default=[], use="""Make the domain a framebuffer backend. @@ -616,11 +611,6 @@ def configure_irq(config_devs, vals): for irq in vals.irq: config_irq = ['irq', ['irq', irq]] config_devs.append(['device', config_irq]) - -def configure_usb(config_devs, vals): - for path in vals.usbport: - config_usb = ['usbport', ['path', path]] - config_devs.append(['device', config_usb]) def configure_vfbs(config_devs, vals): for f in vals.vfb: @@ -800,7 +790,6 @@ def make_config(vals): configure_ioports(config_devs, vals) configure_irq(config_devs, vals) configure_vifs(config_devs, vals) - configure_usb(config_devs, vals) configure_vtpm(config_devs, vals) configure_vfbs(config_devs, vals) configure_security(config, vals) --Boundary-00=_jEeXHTa8OanTrh4 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_jEeXHTa8OanTrh4--