qemu-e2k/hw
aliguori 5d0c5750bb usb: Support for removing device by host addr, improved auto filter syntax (Max Krasnyansky)
This patch adds support for removing USB devices by host address.
Which is usefull for things like libvirtd because there is no easy way to
find guest USB address of the host device.
In other words you can now do:
   usb_add host:3.5
   ...
   usb_del host:3.5
Before the patch 'usb_del' did not support 'host:' notation.

----
Syntax for specifying auto connect filters has been improved.
Old syntax was
    host:bus.dev
    host:pid:vid
New syntax is
    host:auto:bus.dev[:pid:vid]
In both the cases any attribute can be set to "*".

New syntax is more flexible and lets you do things like
    host:3.*:5533:* /* grab any device on bus 3 with vendor id 5533 */

It's now possible to remove auto filters. For example:
    usb_del host:auto:3.*:5533:*

Active filters are printed after all host devices in 'info usb' output.
Which now looks like this:

  Device 1.1, speed 480 Mb/s
    Hub: USB device 1d6b:0002, EHCI Host Controller
  Device 1.4, speed 480 Mb/s
    Class 00: USB device 1058:0704, External HDD
  Auto filters:
    Device 3.* ID *:*

Signed-off-by: Max Krasnyansky <maxk@kernel.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5205 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-14 01:07:41 +00:00
..
ac97.c Add calls to pci_device_save/load 2008-06-21 17:14:50 +00:00
acpi.c x86: Fix powerdown for non-ACPI case 2008-09-02 00:09:25 +00:00
adb.c
adlib.c
ads7846.c Remove duplicate device index calculations. 2008-07-01 21:31:54 +00:00
alpha_palcode.c alpha: only print debug information to the log file 2008-09-07 21:00:01 +00:00
an5206.c
apb_pci.c
apic.c Reset I32_APIC_BASE on system RESET 2008-09-02 00:09:08 +00:00
arm_boot.c
arm_gic.c Save/restore for stellaris boards. 2008-07-02 16:48:32 +00:00
arm_pic.c
arm_sysctl.c
arm_timer.c Save/restore for stellaris boards. 2008-07-02 16:48:32 +00:00
arm-misc.h Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
armv7m_nvic.c Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
armv7m.c
audiodev.h ISA version of CS4231A 2008-06-13 10:48:22 +00:00
baum.c
baum.h
blizzard_template.h
blizzard.c Add qemu_realloc(), by Gerd Hoffmann. 2008-08-06 08:37:17 +00:00
boards.h Allow boot without a drive on Sparc machines (partly extracted from Xen) 2008-08-12 15:58:35 +00:00
cbus.c
cdrom.c
cirrus_vga_rop2.h
cirrus_vga_rop.h
cirrus_vga.c i386: fix isapc machine 2008-08-19 12:55:20 +00:00
cs4231.c
cs4231a.c Disable xLaw debugging 2008-06-21 17:15:00 +00:00
cuda.c
devices.h TC6393XB system features (Dmitry Baryshkov). 2008-06-09 00:03:13 +00:00
dma.c Re-add static qualifier. Fix annother occurance of "const static". 2008-07-05 17:03:54 +00:00
ds1225y.c
dummy_m68k.c
e1000_hw.h
e1000.c only check RCTL_EN in e1000_can_receive() 2008-08-06 14:11:44 +00:00
ecc.c
eccmemctl.c Fix buffer overruns (reported by Julian Seward) 2008-06-19 17:38:15 +00:00
eepro100.c Various NICs: Fix suspend/resume of multiple instances, by Jan Kiszka. 2008-07-18 18:02:34 +00:00
eeprom93xx.c
eeprom93xx.h
es1370.c Add calls to pci_device_save/load 2008-06-21 17:14:50 +00:00
esp.c Suppress OpenBSD warning messages for leftover fifo bytes 2008-06-25 19:59:53 +00:00
etraxfs_dma.c ETRAX-FS: Add support for DMA channel resets, needed for recent linux kernels. 2008-09-03 14:40:17 +00:00
etraxfs_dma.h
etraxfs_eth.c Avoid refering to CRIS specific cpu-state to be able to use these blocks with other cores. 2008-06-30 11:51:12 +00:00
etraxfs_pic.c ETRAX: Add NMI support to the watchdog and the interrupt controller. 2008-06-09 23:33:30 +00:00
etraxfs_ser.c Avoid refering to CRIS specific cpu-state to be able to use these blocks with other cores. 2008-06-30 11:51:12 +00:00
etraxfs_timer.c Avoid refering to CRIS specific cpu-state to be able to use these blocks with other cores. 2008-06-30 11:51:12 +00:00
etraxfs.c CRIS: Mask off the cache selection bit after MMU translations. 2008-09-05 17:17:55 +00:00
etraxfs.h ETRAX: Add NMI support to the watchdog and the interrupt controller. 2008-06-09 23:33:30 +00:00
fdc.c
fdc.h
firmware_abi.h Fix some compiler signed/unsigned char warnings 2008-06-23 17:52:43 +00:00
flash.h Fill in WLAN and BT platform data in CAL area as expected by Maemo. 2008-07-29 14:19:16 +00:00
fmopl.c
fmopl.h
g364fb_template.h Fix g364fb video emulation 2008-08-17 01:44:53 +00:00
g364fb.c Fix g364fb video emulation 2008-08-17 01:44:53 +00:00
grackle_pci.c
gt64xxx.c
gumstix.c
gus.c Avoid signedness warnings 2008-07-05 13:40:58 +00:00
gusemu_hal.c
gusemu_mixer.c Fix some signedness issues caught by gcc 4.3 2008-06-08 01:42:47 +00:00
gusemu.h Fix some signedness issues caught by gcc 4.3 2008-06-08 01:42:47 +00:00
gustate.h
heathrow_pic.c
hw.h Add an opaque parameter to boot_set API, move function to monitor.c 2008-06-20 16:25:06 +00:00
i2c.c Fix load width for slave address in i2c_bus_load (Chris Lalancette). 2008-07-29 13:57:48 +00:00
i2c.h Fix i2c save/restore. 2008-07-01 23:16:53 +00:00
i8254.c
i8259.c Special Mask Mode for i8259 PIC (Sebastian Reichelt). 2008-07-19 09:18:48 +00:00
ide.c Ignore IDE command if issued while IDE is busy (Gleb Natapov) 2008-08-21 22:40:00 +00:00
integratorcp.c Spelling fixes, by Stefan Weil. 2008-06-03 19:51:57 +00:00
iommu.c Fix DMA length bug seen with NetBSD (Cliff Wright) 2008-07-01 19:28:23 +00:00
irq.c
irq.h
isa_mmio.c
isa.h Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
jazz_led.c Implement resolution switching in common console code. 2008-07-01 16:24:38 +00:00
lm832x.c Remove duplicate device index calculations. 2008-07-01 21:31:54 +00:00
lsi53c895a.c Add qemu_realloc(), by Gerd Hoffmann. 2008-08-06 08:37:17 +00:00
m48t59.c
mac_dbdma.c
mac_nvram.c
macio.c
mainstone.c
mainstone.h
max111x.c Remove duplicate device index calculations. 2008-07-01 21:31:54 +00:00
max7310.c Remove duplicate device index calculations. 2008-07-01 21:31:54 +00:00
mc146818rtc.c
mcf5206.c
mcf5208.c
mcf_fec.c
mcf_intc.c
mcf_uart.c
mcf.h
mips_int.c
mips_jazz.c Allow diskless operation for all mips platforms. 2008-08-13 13:01:28 +00:00
mips_malta.c Fix warnings that would be generated by gcc -Wstrict-prototypes 2008-08-17 20:21:51 +00:00
mips_mipssim.c Allow diskless operation for all mips platforms. 2008-08-13 13:01:28 +00:00
mips_r4k.c Allow diskless operation for all mips platforms. 2008-08-13 13:01:28 +00:00
mips_timer.c Add instruction counter. 2008-06-29 01:03:05 +00:00
mips.h
mipsnet.c
mpcore.c
mst_fpga.c
musicpal.c Implement resolution switching in common console code. 2008-07-01 16:24:38 +00:00
nand.c Remove duplicate device index calculations. 2008-07-01 21:31:54 +00:00
ne2000.c Various NICs: Fix suspend/resume of multiple instances, by Jan Kiszka. 2008-07-18 18:02:34 +00:00
nseries.c Fill in WLAN and BT platform data in CAL area as expected by Maemo. 2008-07-29 14:19:16 +00:00
nvram.h
omap1.c Fix most warnings that would be caused by gcc flag -Wundef 2008-09-06 17:47:39 +00:00
omap2.c Correct audio api usage in OMAP EAC (spotted by malc). 2008-07-29 17:29:41 +00:00
omap_clk.c Omap DPLL & APLL locking logic. 2008-07-21 19:52:54 +00:00
omap_dma.c Fix a bad comparison, spotted by Paul Brook. 2008-07-22 01:57:42 +00:00
omap_dss.c array overflow in hw/stellaris.c and hw/omap_dss.c 2008-08-22 08:57:19 +00:00
omap_i2c.c Omap DPLL & APLL locking logic. 2008-07-21 19:52:54 +00:00
omap_lcd_template.h
omap_lcdc.c Implement resolution switching in common console code. 2008-07-01 16:24:38 +00:00
omap_mmc.c
omap.h Handle on-chip DMA controllers in one place, convert OMAP DMA to use it. 2008-07-21 20:40:22 +00:00
onenand.c Fill in WLAN and BT platform data in CAL area as expected by Maemo. 2008-07-29 14:19:16 +00:00
openpic.c
palm.c Implement resolution switching in common console code. 2008-07-01 16:24:38 +00:00
parallel.c Parallel Port Direction Fix 2008-08-22 08:57:09 +00:00
pc.c Fix most warnings that would be caused by gcc flag -Wundef 2008-09-06 17:47:39 +00:00
pc.h De-assert PIC IRQs properly at APIC level 2008-08-21 03:14:52 +00:00
pci_host.h
pci.c
pci.h
pckbd.c Revert "QEMU keyboard issue with Gujin-2.2" (Avi Kivity). 2008-07-19 14:16:20 +00:00
pcmcia.h
pcnet.c hw/pcnet: use qemu_socket.h 2008-09-04 04:35:20 +00:00
pcspk.c
pflash_cfi01.c Clean up MMIO TLB handling. 2008-06-09 00:20:13 +00:00
pflash_cfi02.c Clean up MMIO TLB handling. 2008-06-09 00:20:13 +00:00
piix_pci.c
pixel_ops.h
pl011.c Save/restore for stellaris boards. 2008-07-02 16:48:32 +00:00
pl022.c Save/restore for stellaris boards. 2008-07-02 16:48:32 +00:00
pl031.c
pl050.c
pl061.c Save/restore for stellaris boards. 2008-07-02 16:48:32 +00:00
pl080.c
pl110_template.h
pl110.c Implement resolution switching in common console code. 2008-07-01 16:24:38 +00:00
pl181.c
pl190.c
ppc4xx_devs.c Move CPU save/load registration to common code. 2008-06-30 16:31:04 +00:00
ppc4xx.h
ppc405_boards.c
ppc405_uc.c
ppc405.h
ppc_chrp.c Move CPU save/load registration to common code. 2008-06-30 16:31:04 +00:00
ppc_mac.h
ppc_oldworld.c Move CPU save/load registration to common code. 2008-06-30 16:31:04 +00:00
ppc_prep.c Move CPU save/load registration to common code. 2008-06-30 16:31:04 +00:00
ppc.c
ppc.h
prep_pci.c
primecell.h
ps2.c
ps2.h
ptimer.c
pxa2xx_dma.c
pxa2xx_gpio.c
pxa2xx_keypad.c
pxa2xx_lcd.c Implement resolution switching in common console code. 2008-07-01 16:24:38 +00:00
pxa2xx_mmci.c
pxa2xx_pcmcia.c
pxa2xx_pic.c
pxa2xx_template.h
pxa2xx_timer.c
pxa2xx.c Fix i2c save/restore. 2008-07-01 23:16:53 +00:00
pxa.h
r2d.c SH4: R2D-PLUS FPGA: simply unassigned memory triggering 2008-09-02 23:26:23 +00:00
rc4030.c
realview_gic.c
realview.c Spelling fixes, by Stefan Weil. 2008-06-03 19:51:57 +00:00
rtl8139.c Fix most warnings that would be caused by gcc flag -Wundef 2008-09-06 17:47:39 +00:00
sb16.c
sbi.c
scsi-disk.c Add rigid and flexible disk geometry page support 2008-07-02 15:16:18 +00:00
scsi-disk.h
scsi-generic.c suppress a couple of spurious warnings in scsi-generic.c 2008-09-02 00:08:58 +00:00
scsi.h
sd.c Enable SD card on creation. 2008-06-02 00:55:08 +00:00
sd.h
serial.c serial: Always update iir, even when ier is empty (Samuel Thibault) 2008-08-12 13:22:50 +00:00
sh7750_regnames.c
sh7750_regnames.h
sh7750_regs.h
sh7750.c sh4: CPU versioning. 2008-09-02 16:18:28 +00:00
sh_intc.c
sh_intc.h
sh_serial.c
sh_timer.c
sh.h
sharpsl.h Provide basic emulation for Sharp SL-6000 PDA (Tosa), Dmitry Baryshkov. 2008-06-02 01:33:11 +00:00
shix.c Fix warnings that would be generated by gcc -Wstrict-prototypes 2008-08-17 20:21:51 +00:00
slavio_intctl.c
slavio_misc.c
slavio_serial.c Fix NetBSD keyboard problem 2008-07-02 15:17:21 +00:00
slavio_timer.c
smbus_eeprom.c Fix smbus_eeprom.c compile with DEBUG (spotted by Duilio Protti). 2008-06-02 01:48:27 +00:00
smbus.c
smbus.h
smc91c111.c
soc_dma.c Add qemu_realloc(), by Gerd Hoffmann. 2008-08-06 08:37:17 +00:00
soc_dma.h Handle on-chip DMA controllers in one place, convert OMAP DMA to use it. 2008-07-21 20:40:22 +00:00
sparc32_dma.c
sparc32_dma.h
spitz.c Provide basic emulation for Sharp SL-6000 PDA (Tosa), Dmitry Baryshkov. 2008-06-02 01:33:11 +00:00
ssd0303.c Eliminate spurous screen updates. 2008-07-07 23:01:25 +00:00
ssd0323.c Eliminate spurous screen updates. 2008-07-07 23:01:25 +00:00
ssi-sd.c Save/restore for stellaris boards. 2008-07-02 16:48:32 +00:00
stellaris_enet.c Save/restore for stellaris boards. 2008-07-02 16:48:32 +00:00
stellaris_input.c Save/restore for stellaris boards. 2008-07-02 16:48:32 +00:00
stellaris.c array overflow in hw/stellaris.c and hw/omap_dss.c 2008-08-22 08:57:19 +00:00
sun4c_intctl.c
sun4m.c Fix OpenBSD linker warnings 2008-08-21 17:58:08 +00:00
sun4m.h
sun4u.c Fix OpenBSD linker warnings 2008-08-21 17:58:08 +00:00
tc6393xb.c Add proper file header. 2008-06-09 14:31:18 +00:00
tc58128.c
tcx.c Fix 24 bit mode 2008-07-24 11:26:38 +00:00
tmp105.c Remove duplicate device index calculations. 2008-07-01 21:31:54 +00:00
tosa.c TC6393XB system features (Dmitry Baryshkov). 2008-06-09 00:03:13 +00:00
tsc210x.c Remove duplicate device index calculations. 2008-07-01 21:31:54 +00:00
tsc2005.c Remove duplicate device index calculations. 2008-07-01 21:31:54 +00:00
tusb6010.c
twl92230.c Fix some warnings that would be generated by gcc -Wmissing-prototypes 2008-08-17 20:26:25 +00:00
unin_pci.c
usb-hid.c
usb-hub.c
usb-msd.c Add image format option for USB mass-storage devices 2008-08-21 22:24:32 +00:00
usb-musb.c
usb-net.c Fix most warnings that would be caused by gcc flag -Wundef 2008-09-06 17:47:39 +00:00
usb-ohci.c Fix most warnings that would be caused by gcc flag -Wundef 2008-09-06 17:47:39 +00:00
usb-serial.c Fix some warnings that would be generated by gcc -Wmissing-prototypes 2008-08-17 20:26:25 +00:00
usb-uhci.c uhci: Change default transaction lifetime to 32 frames (Max Krasnyansky) 2008-09-11 19:42:00 +00:00
usb-wacom.c
usb.c usb: generic packet handler cleanup and documentation (Max Krasnyansky) 2008-08-21 19:29:38 +00:00
usb.h usb: Support for removing device by host addr, improved auto filter syntax (Max Krasnyansky) 2008-09-14 01:07:41 +00:00
versatile_pci.c
versatilepb.c Spelling fixes, by Stefan Weil. 2008-06-03 19:51:57 +00:00
vga_int.h Implement resolution switching in common console code. 2008-07-01 16:24:38 +00:00
vga_template.h
vga.c Fix OpenBSD linker warnings 2008-08-21 17:58:08 +00:00
vmmouse.c
vmport.c Silence vmport unless DEBUG is enabled. 2008-08-19 19:13:06 +00:00
vmware_vga.c Properly byte-swap values in VMware SVGA (malc). 2008-07-16 04:45:12 +00:00
wm8750.c Remove duplicate device index calculations. 2008-07-01 21:31:54 +00:00
zaurus.c Provide basic emulation for Sharp SL-6000 PDA (Tosa), Dmitry Baryshkov. 2008-06-02 01:33:11 +00:00