xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad@kernel.org>
To: Qian Hu <qianhu2011@gmail.com>
Cc: xen-devel@lists.xen.org
Subject: Re: usbpassthrough of xen-4.1.2 update
Date: Tue, 25 Sep 2012 10:04:22 -0400	[thread overview]
Message-ID: <20120925140421.GA16478@phenom.dumpdata.com> (raw)
In-Reply-To: <CALCpXpCvGkjZyG-NOY+fZY0q0f_DxuwPNEnxwKXVhjOe=gcHSQ@mail.gmail.com>

On Tue, Sep 25, 2012 at 11:17:03AM +0800, Qian Hu wrote:
> Hi, everyone! The same question with updated message.
> 
> I am working on the USB passthrough of Xen-4.1.2. My host OS  is Fedora 14
> and the guest OS is win7.
> 
> According to the wiki page(http://wiki.xen.org/wiki/Xen_USB_Passthrough),
> 
> xen supports passthrough of usb device from dom0 to guests. I have tried
> the Xen HVM guest qemu-dm usb1.1 emulation,
> 
> by specifying "usb = 1" and "usbdevice = host:xxxx:yyyy". I have also tried
> the command usb_add host:xxxx:yyyy.

Do you also re-assign the device from the Linux kernel? Like this:

(the C408 0040 is my mouse).

 cd /sys/bus/usb/drivers/usbhid
 for a in `ls -1 | grep :`
 do
   for DEV in C408 0040
   do
        grep $DEV $a/modalias
        if [ $? -eq 0 ]; then
                echo "Unbinding $a for $DEV"
                echo $a > unbind
        fi
   done
 done

This is what the config file looks for me:
builder='hvm'
memory = 2048
name = "Windows7"
vcpus=3
disk = [ 'phy:/dev/vg_guest/Win7_Home,hda,w']
vnc=1
videoram=8
vnclisten="0.0.0.0"
vncpasswd=''
stdvga=0
serial='pty'
tsc_mode=0
usb=1
usb_add="host:045e:0040"
usbdevice='tablet'
xen_platform_pci=1
# Remember QEMU_AUDIO_DRV=pa
soundhw='es1370'
pci=['01:00.0','01:00.1','02:00.0']

  parent reply	other threads:[~2012-09-25 14:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-25  3:17 usbpassthrough of xen-4.1.2 update Qian Hu
2012-09-25  6:11 ` Pasi Kärkkäinen
2012-09-25  9:01   ` Qian Hu
2012-09-25 14:04 ` Konrad Rzeszutek Wilk [this message]
2012-09-25 15:34   ` usbpassthrough of xen-4.1.2 update / Qemu-dm PulseAudio/Alsa support Pasi Kärkkäinen
2012-09-26 11:45     ` Konrad Rzeszutek Wilk
2012-09-26  8:39   ` usbpassthrough of xen-4.1.2 update Qian Hu
2012-09-26 11:48     ` Konrad Rzeszutek Wilk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120925140421.GA16478@phenom.dumpdata.com \
    --to=konrad@kernel.org \
    --cc=qianhu2011@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).