Skip to contentSkip to conversation

Backport the USB support from QEMU 0.8.1 to the current Xen

Xen-changelog Daniel Stekloff 1 participant 1 message Jun 12, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Shouldn't documentation like the man pages be updated as well?

Quoted 45 lines · Xen patchbot-unstable

# HG changeset patch
# User [email protected]
# Node ID e2a2b2da92f471b9cd8674f776ddd3b6f28042cf
# Parent 5b1bd9eab3b9a715543937f3d9a083faa23f0f53 [HVM][DM] Backport the USB support from QEMU 0.8.1 to the current Xen device model. To support USB there are two new optional config lines that can be added to the guest config file:

usb=1
This will enable USB without defining a specific USB device. This option is assumed and not needed if the `usbdevice' option is given.

usbdevice='device'
This will enable USB and also enable support for the given device. Currently, the only two devices are mouse' (a PS/2 mouse) and tablet' (an absolute pointing device). The advantage of `tablet' is that Windows guests will automatically recognize and support this device so specifying the config line:

usbdevice='tablet'

will create a mouse that works transparently with Windows guests under VNC. (Linux doesn't recognize the USB tablet yet so Linux guests under VNC will still need the Summagraphics emulation.)

---
 tools/ioemu/hw/pc.c                 |    6 
 tools/ioemu/hw/pckbd.c              |  183 ++++-----
 tools/ioemu/hw/usb-hid.c            |  537 ++++++++++++++++++++++++++++
 tools/ioemu/hw/usb-hub.c            |  549 +++++++++++++++++++++++++++++
 tools/ioemu/hw/usb-uhci.c           |  680 ++++++++++++++++++++++++++++++++++++
 tools/ioemu/hw/usb.c                |  193 ++++++++++
 tools/ioemu/hw/usb.h                |  166 ++++++++
 tools/ioemu/monitor.c               |    8 
 tools/ioemu/sdl.c                   |   46 ++
 tools/ioemu/target-i386-dm/Makefile |    3 
 tools/ioemu/usb-linux.c             |  487 +++++++++++++++++++++++++
 tools/ioemu/vl.c                    |  167 ++++++++
 tools/ioemu/vl.h                    |   21 -
 tools/ioemu/vnc.c                   |   58 ++-
 tools/python/xen/xend/image.py      |    5 
 tools/python/xen/xm/create.py       |   16 
 16 files changed, 2995 insertions(+), 130 deletions(-)