WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine
From: "Mr. Teo En Ming (Zhang Enming)" <space.time.universe@xxxxxxxxx>
Date: Wed, 14 Oct 2009 18:26:43 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, space.time.universe@xxxxxxxxx, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Wed, 14 Oct 2009 03:27:09 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ottb46bG/6++a/javkxntf4K1WYIHc7EJFKm8WjH4rQ=; b=TxTu3BDMA5WacmSdHr8TCwS/6J7TgaSRngYTCU+z/iOD0I7o4ZZ2DYF5IF0F9AoUIs n1T4V26D07+t+UnIOTamSVyvjdqNAYwK4Am9bOp9mW2bci4BjDSVRjRqSzcQToSafCf3 bF10phNHYh1RNaFLr3EP/aabo+5udFO45/sV4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jXpXJNxm2UUKnsu4P0TclJ5h2weSi8MmYurCHVXyQVwynKzB5SaBMKQLYn+wyl0627 96mfUN+1NCcIMZt1gskMXPG/hvm+YK6GxSU0BS6nEzdOopPXLqrIPEIpR26rAkqU7t34 vX4Zpj+EjF6JrCMokof0oeOW2+BxgMgpt7aYU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f712b9cf0910110022u5ebf77b2u1f25c9cf5bd47e1c@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4AB025E4.1000303@xxxxxxxx> <20091008142230.GA11674@xxxxxxxxxxxxxxxxxxx> <f712b9cf0910080744n6052876n4bda0ee6c1d59ec1@xxxxxxxxxxxxxx> <20091008144935.GA13159@xxxxxxxxxxxxxxxxxxx> <f712b9cf0910080805p3a740fbbyf6bf2aee83d96b96@xxxxxxxxxxxxxx> <f712b9cf0910081754j2b83fb76jc9233db191b5f5bf@xxxxxxxxxxxxxx> <20091009071135.GJ1434@xxxxxxxxxxx> <f712b9cf0910090052o2bc415aap3d6a7d96a3443e8a@xxxxxxxxxxxxxx> <4ACFAE0A.4090902@xxxxxxxx> <f712b9cf0910110022u5ebf77b2u1f25c9cf5bd47e1c@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Dear All,

I was wrong in stating that only one USB device can be passed through
to Windows XP domU at any one time. In making this assumption, I had
passed through the USB optical mouse only and relied on the onscreen
keyboard as a substitute for the physical USB keyboard.

I realized that I couldn't get to the QEMU monitor and issue the
"usb_add host:vendorid:productid" command even after I have vnc-ed
into my Windows XP domU. This is because the VNC server is running
within Windows XP guest operating system.

In order to reach the QEMU monitor and execute the usb_add command,
you have to initialize the vnc server built-in to QEMU, which I did
not previously do so.

So today I have re-configured my Windows XP Home Edition virtual
machine configuration, particularly pertaining to vnc settings.

Here is my WinXP HVM configuration:

#import os, re
#arch = os.uname()[4]
#if re.search('64', arch):
#    arch_libdir = 'lib64'
#else:
#    arch_libdir = 'lib'

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 3072

# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
#shadow_memory = 8
name = "winxphome32"
vif = [ 'bridge=eth0' ]
acpi = 1
apic = 1
disk = [ 'phy:/dev/virtualmachines/winxphome32,hda,w',
'phy:/dev/sr0,hdc:cdrom,r' ]

#device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
#device_model = '/usr/' + 'lib' + '/xen/bin/qemu-dm'
device_model = 'qemu-dm'

#-----------------------------------------------------------------------------
# boot on floppy (a), hard disk (c) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
boot="cd"
sdl=0
vnc=1
vnclisten="<IP address of dom 0>"
vncdisplay=1
vncunused=1
vncconsole=0
vncpasswd=''

#serial='pty'
#usbdevice='tablet'
# onboard
#pci = [ '00:02.0' ]
# nvidia & firewire
pci = [ '01:00.0','02:01.0' ]
vcpus=2
# No passthrough
#gfx_passthru=0
# onboard
#gfx_passthru=1
# nvidia
gfx_passthru=2

# Can only pass through one usb device at a time
usb=1
# USB Unity Green Mouse
#usbdevice = 'host:1bcf:0007'
# USB A1pro Black Mouse
usbdevice = 'host:15d9:0a41'
# USB Keyboard
#usbdevice = 'host:0603:00f2'
# USB Sony IC Recorder
#usbdevice = 'host:054c:0271'
# USB Lexmark X1270 Color Printer
#usbdevice = 'host:043d:00ff'
# USB Lexmark X1270 Photo Scanner
#usbdevice = 'host:043d:007d'
# USB Lexmark X1270 Generic Hub
#usbdevice = 'host:043d:007a'

After I have started Windows XP domU on my Intel DQ45CB, I vnc-ed into
the VNC server built-in to QEMU using my laptop over network. USB
optical mouse was already passed through to WinXP domU as specified in
the HVM config. On the QEMU monitor, I executed "usb_add
host:0603:00f2" to passthrough my USB keyboard. Windows XP domU
immediately detected the presence of the physical USB keyboard.

Now I have both USB optical mouse and USB keyboard passed through to
my Xen-based Windows XP virtual machine.

Sorry Timothy I took so long to figure it out.

-- 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical
Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: space.time.universe@xxxxxxxxx
MSN: teoenming@xxxxxxxxxxx
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

On Sun, Oct 11, 2009 at 3:22 PM, Mr. Teo En Ming (Zhang Enming)
<space.time.universe@xxxxxxxxx> wrote:
> It works.
>
> How do I get more than 1 usb device to be passed through to win xp
> domU? At the moment I can only passthrough the usb optical mouse and
> not the usb keyboard. I have to use the on-screen keyboard.
>
> I have also tried to pass through the OHCI Firewire controller to the
> win xp domu. Win XP domU device manager reports that the firewire
> controller is working properly. However, when I plug in my Canon HV20
> firewire-based digital camcorder, it cannot be detected at all.
>
> --
> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical
> Engineering)
> Alma Maters:
> (1) Singapore Polytechnic
> (2) National University of Singapore
> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
> Email: space.time.universe@xxxxxxxxx
> MSN: teoenming@xxxxxxxxxxx
> Mobile Phone: +65-9648-9798
> Street: Bedok Reservoir Road
> Republic of Singapore
>
> On Sat, Oct 10, 2009 at 5:41 AM, Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:
>> On 10/09/09 00:52, Mr. Teo En Ming (Zhang Enming) wrote:
>>> So if I don't do a git checkout of a specific branch, the default will
>>> be xen/master, and at the time of this writing, the pvops dom0 kernel
>>> will be 2.6.31.1?
>>>
>>
>> Yep, that's the plan.  Tell me if it works.
>>
>>    J
>>
>>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>