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: Wed, 26 Sep 2012 07:48:37 -0400 [thread overview]
Message-ID: <20120926114836.GC7356@phenom.dumpdata.com> (raw)
In-Reply-To: <CALCpXpBJj23e3j_W4Mf2CJ57NSgx2YvnFMdB-0NgaJ=Wgvf60w@mail.gmail.com>
On Wed, Sep 26, 2012 at 04:39:22PM +0800, Qian Hu wrote:
> I am sorry what does the re-assign mean? By the way, where can I find the
Please do not top-post.
> ID C408 0040?
<sigh> That is my mouse. Yours would be different of course. It was
an example of what you need to do.
>
> It seems not to be the message listed by "lsusb".
>
> Below is my config file, similar with yours.
>
> import os, re
> arch = os.uname()[4]
> if re.search('64', arch):
> arch_libdir = 'lib64'
> else:
> arch_libdir = 'lib'
>
> name = "win7"
> builder = "hvm"
> memory = "1024"
> disk = [ 'file:/root/win7.img,hda,w',
> # 'file:/mnt/win7.iso,hdc:cdrom,r',
> ]
> vif = [ 'type=ioemu, mac=00:16:3e:3f:74:01 , bridge=eth0 ,model=e1000', ]
> uuid = "11111111-2262-28d2-9b64-b11713adfb20"
> device_model = "/home/root1/xen/xen-4.1.2/tools/ioemu-dir/i386-dm/qemu-dm"
> kernel = "/usr/lib/xen/boot/hvmloader"
> vnc=1
> vnclisten="0.0.0.0"
> vncdisplay=0
> apic=1
> acpi=1
> pae=1
> boot="dc"
> vcpus=2
> serial = "pty"
> on_reboot='restart'
> on_crash='restart'
> dhcp='off'
> stdvga=0
> audio=1
> soundhw='es1370'
> videoram=16
> usb=1
> usb_add='host:0204:6025'
> usbdevice='tablet'
>
>
>
> 2012/9/25 Konrad Rzeszutek Wilk <konrad@kernel.org>
>
> > 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']
> >
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
prev parent reply other threads:[~2012-09-26 11:48 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
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 [this message]
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=20120926114836.GC7356@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).