From: "Mr. Teo En Ming (Zhang Enming)" Subject: Re: Video Presentation on PCI Express x16 VGA Pass Through to Xen-based Windows XP Home Edition HVM Virtual Machine Date: Mon, 14 Sep 2009 03:01:01 +0800 Message-ID: References: <20090910140359.GB31123@reaktio.net> <20090911160319.GJ31123@reaktio.net> <20090913091247.GM31123@reaktio.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1064822696==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?ISO-8859-1?Q?Pasi_K=E4rkk=E4inen?= , weidong.han@intel.com, timothy.moore@expidas.net, djmagee@mageenet.net, bengheng@eecs.umich.edu, bderzhavets@yahoo.com Cc: Jeremy Fitzhardinge , xen-devel@lists.xensource.com, space.time.universe@gmail.com List-Id: xen-devel@lists.xenproject.org --===============1064822696== Content-Type: multipart/alternative; boundary=0016364eea109bad7004737a2b37 --0016364eea109bad7004737a2b37 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi All, Here is my working Windows XP Home Edition 32-bit HVM domU guest configuration file: #import os, re #arch =3D os.uname()[4] #if re.search('64', arch): # arch_libdir =3D 'lib64' #else: # arch_libdir =3D 'lib' kernel =3D "/usr/lib/xen/boot/hvmloader" builder=3D'hvm' memory =3D 3072 # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. #shadow_memory =3D 8 name =3D "winxphome32" vif =3D [ 'bridge=3Deth0' ] acpi =3D 1 apic =3D 1 disk =3D [ 'phy:/dev/virtualmachines/winxphome32,hda,w', 'phy:/dev/sr0,hdc:cdrom,r' ] #device_model =3D '/usr/' + arch_libdir + '/xen/bin/qemu-dm' #device_model =3D '/usr/' + 'lib' + '/xen/bin/qemu-dm' device_model =3D 'qemu-dm' #--------------------------------------------------------------------------= --- # boot on floppy (a), hard disk (c) or CD-ROM (d) # default: hard disk, cd-rom, floppy boot=3D"cd" #sdl=3D0 #vnc=3D1 #vncconsole=3D1 #vncpasswd=3D'' #serial=3D'pty' #usbdevice=3D'tablet' # onboard #pci =3D [ '00:02.0' ] # nvidia pci =3D [ '01:00.0' ] vcpus=3D2 # No passthrough #gfx_passthru=3D0 # onboard #gfx_passthru=3D1 # nvidia gfx_passthru=3D2 # Can only pass through one usb device at a time usb=3D1 # USB Unity Green Mouse #usbdevice =3D 'host:1bcf:0007' # USB A1pro Black Mouse usbdevice =3D 'host:15d9:0a41' # USB Keyboard #usbdevice =3D 'host:0603:00f2' # USB Sony IC Recorder #usbdevice =3D 'host:054c:0271' # USB Lexmark X1270 Color Printer #usbdevice =3D 'host:043d:00ff' # USB Lexmark X1270 Photo Scanner #usbdevice =3D 'host:043d:007d' # USB Lexmark X1270 Generic Hub #usbdevice =3D 'host:043d:007a' --=20 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@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Mon, Sep 14, 2009 at 2:28 AM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote: > USB Device Pass Through Succeeded > > How thick I must have been! In my earlier blog posts with VGA passthrough > succeeded, I said that I couldn't passthrough any USB device at all. > > As a matter of fact, Timothy had corrected my usbdevice directive in the > guest config file in an earlier mailing list post but I didn't take a > careful look at the usbdevice directive at all. The correct usbdevice > directive is: > > usbdevice =3D "host:vendorid:productid" > > I had used > > usbdevice =3D [ 'host:vendorid:productid' ] > > which is completely erroneous. I need to omit the square brackets for USB > device passthrough to work. > > I have now successfully passed through the USB optical mouse to the Windo= ws > XP Home HVM domU and using on-screen keyboard as a substitute for the > physical USB keyboard. > > The reason I am doing this is because QEMU with Xen can only allow one US= B > device to be passed through at any one time. > > It was so obvious and I missed the obvious! > > Sorry Timothy! > > -- > 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@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > On Mon, Sep 14, 2009 at 2:22 AM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > >> Dear Pasi, >> >> Yes, I have tried the nomodeset kernel parameter without result. >> >> I couldn't get Jeremy's rebase/master branch (pvops dom 0 kernel 2.6.31) >> to work despite disabling all of USB support in the kernel. I will >> troubleshoot this issue with the serial console enabled another time. >> >> Meanwhile, I got Linus' mainline kernel 2.6.31 to work on my system. So >> apparently the dom 0 patched kernel 2.6.31 has some issues or I did not >> configure it properly. >> >> -- >> 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@gmail.com >> MSN: teoenming@hotmail.com >> Mobile Phone: +65-9648-9798 >> Street: Bedok Reservoir Road >> Republic of Singapore >> >> On Sun, Sep 13, 2009 at 5:12 PM, Pasi K=E4rkk=E4inen wrot= e: >> >>> On Sun, Sep 13, 2009 at 08:31:26AM +0800, Mr. Teo En Ming (Zhang Enming= ) >>> wrote: >>> > I have disabled all USB support in the kernel but I still couldn't ge= t >>> pvops >>> > dom0-patched kernel 2.6.31 final to complete loading. All I get is a >>> > blinking cursor at the top left hand corner of the monitor. >>> > >>> >>> Did you try "nomodeset" parameter for the dom0 kernel? >>> >>> Have you tried setting up a serial console and capturing the kernel boo= t >>> messages? >>> >>> -- Pasi >>> >>> > -- >>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanica= l >>> > 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@gmail.com >>> > MSN: teoenming@hotmail.com >>> > Mobile Phone: +65-9648-9798 >>> > Street: Bedok Reservoir Road >>> > Republic of Singapore >>> > >>> > On Sat, Sep 12, 2009 at 8:23 PM, Mr. Teo En Ming (Zhang Enming) < >>> > space.time.universe@gmail.com> wrote: >>> > >>> > > OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel but= I >>> still >>> > > can't get pvops dom 0 kernel 2.6.31 final to boot up completely. >>> > > >>> > > Really puzzled. >>> > > >>> > > -- >>> > > 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@gmail.com >>> > > MSN: teoenming@hotmail.com >>> > > Mobile Phone: +65-9648-9798 >>> > > Street: Bedok Reservoir Road >>> > > Republic of Singapore >>> > > >>> > > On Sat, Sep 12, 2009 at 6:11 PM, Mr. Teo En Ming (Zhang Enming) < >>> > > space.time.universe@gmail.com> wrote: >>> > > >>> > >> I have disabled USB 1.0 and USB 2.0 drivers simultaneously and >>> enabled USB >>> > >> 3.0 driver but the kernel stops loading. >>> > >> >>> > >> Then I totally disabled all USB support by passing the "nousb" >>> parameter >>> > >> to the kernel but it still stops loading. >>> > >> >>> > >> pvops dom 0 2.6.31 final can't work. >>> > >> >>> > >> -- >>> > >> 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@gmail.com >>> > >> MSN: teoenming@hotmail.com >>> > >> Mobile Phone: +65-9648-9798 >>> > >> Street: Bedok Reservoir Road >>> > >> Republic of Singapore >>> > >> >>> > >> On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enming) < >>> > >> space.time.universe@gmail.com> wrote: >>> > >> >>> > >>> After disabling the USB 1.0 driver, but leaving the USB 2.0 drive= r >>> > >>> compiled statically into the kernel, I get an error with the USB >>> 2.0 driver. >>> > >>> This means I cannot use either of the USB 1.0 and USB 2.0 drivers= . >>> > >>> >>> > >>> Please refer to my blog post here: >>> > >>> >>> > >>> >>> > >>> >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disablin= g-usb-10-host-controller.html >>> > >>> >>> > >>> -- >>> > >>> 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@gmail.com >>> > >>> MSN: teoenming@hotmail.com >>> > >>> Mobile Phone: +65-9648-9798 >>> > >>> Street: Bedok Reservoir Road >>> > >>> Republic of Singapore >>> > >>> >>> > >>> On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang Enming) = < >>> > >>> space.time.universe@gmail.com> wrote: >>> > >>> >>> > >>>> Hi, >>> > >>>> >>> > >>>> I have tried pvops dom 0 kernel 2.6.31 final from Jeremy's tree. >>> > >>>> >>> > >>>> But it gave me a USB host controller died error. >>> > >>>> >>> > >>>> Please refer to the error output here: >>> > >>>> >>> > >>>> >>> > >>>> >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-= ops-dom-0-kernel-2631.html >>> > >>>> >>> > >>>> -- >>> > >>>> 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@gmail.com >>> > >>>> MSN: teoenming@hotmail.com >>> > >>>> Mobile Phone: +65-9648-9798 >>> > >>>> Street: Bedok Reservoir Road >>> > >>>> Republic of Singapore >>> > >>>> >>> > >>>> On Sat, Sep 12, 2009 at 12:03 AM, Pasi K=E4rkk=E4inen >>> wrote: >>> > >>>> >>> > >>>>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo En Ming (Zhan= g >>> > >>>>> Enming) wrote: >>> > >>>>> > Hi, >>> > >>>>> > >>> > >>>>> > Please refer to the disk I/O benchmark results here: >>> > >>>>> > >>> > >>>>> > >>> > >>>>> >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchm= ark-results-with-xen.html >>> > >>>>> > >>> > >>>>> > Results show that Win XP HVM guest runs faster in 2.6.30-rc3 >>> than >>> > >>>>> > 2.6.31-rc6. >>> > >>>>> > >>> > >>>>> >>> > >>>>> Btw you might also want to test with the latest rebase/master >>> tree; >>> > >>>>> it's >>> > >>>>> at Linux 2.6.31 final now. >>> > >>>>> >>> > >>>>> -- Pasi >>> > >>>>> >>> > >>>>> > -- >>> > >>>>> > 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@gmail.com >>> > >>>>> > MSN: teoenming@hotmail.com >>> > >>>>> > Mobile Phone: +65-9648-9798 >>> > >>>>> > Street: Bedok Reservoir Road >>> > >>>>> > Republic of Singapore >>> > >>>>> > >>> > >>>>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En Ming (Zhang Enmin= g) >>> < >>> > >>>>> > space.time.universe@gmail.com> wrote: >>> > >>>>> > >>> > >>>>> > > Hi, >>> > >>>>> > > >>> > >>>>> > > I will try to stop unnecessary services on Dom 0 and do a >>> disk I/O >>> > >>>>> > > benchmark between WinXP domU on 2.6.30-rc3 and 2.6.31-rc6 >>> tonight >>> > >>>>> (Singapore >>> > >>>>> > > time). That will be more conclusive. >>> > >>>>> > > >>> > >>>>> > > -- >>> > >>>>> > > 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@gmail.com >>> > >>>>> > > MSN: teoenming@hotmail.com >>> > >>>>> > > Mobile Phone: +65-9648-9798 >>> > >>>>> > > Street: Bedok Reservoir Road >>> > >>>>> > > Republic of Singapore >>> > >>>>> > > >>> > >>>>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy Fitzhardinge < >>> > >>>>> jeremy@goop.org>wrote: >>> > >>>>> > > >>> > >>>>> > >> On 09/10/09 07:03, Pasi K=E4rkk=E4inen wrote: >>> > >>>>> > >> > On Thu, Sep 10, 2009 at 08:28:03PM +0800, Mr. Teo En Min= g >>> (Zhang >>> > >>>>> Enming) >>> > >>>>> > >> wrote: >>> > >>>>> > >> > >>> > >>>>> > >> >> Dear All, >>> > >>>>> > >> >> >>> > >>>>> > >> >> Here is my latest video presentation on VGA passthrough= . >>> Please >>> > >>>>> check >>> > >>>>> > >> out my >>> > >>>>> > >> >> blog at >>> http://teo-en-ming-aka-zhang-enming.blogspot.com/ or >>> > >>>>> the >>> > >>>>> > >> Youtube >>> > >>>>> > >> >> link at http://www.youtube.com/watch?v=3D1ia3IwG6tp4 >>> > >>>>> > >> >> >>> > >>>>> > >> >> The "not enough free resources" problem for nVidia >>> Geforce 8400 >>> > >>>>> GS PCI >>> > >>>>> > >> >> Express x16 graphics card in earlier presentation video= s: >>> > >>>>> > >> >> >>> > >>>>> > >> >> http://www.youtube.com/watch?v=3DHNEiSI...< >>> > >>>>> > >> http://www.youtube.com/watch?v=3DHNEiSInrav0> >>> > >>>>> > >> >> >>> > >>>>> > >> >> http://www.youtube.com/watch?v=3D_hOT_9...< >>> > >>>>> > >> http://www.youtube.com/watch?v=3D_hOT_9LIG5w> >>> > >>>>> > >> >> >>> > >>>>> > >> >> was fixed. Device manager in Windows XP HVM domU no >>> longer >>> > >>>>> shows an >>> > >>>>> > >> >> exclamation mark besides the nVidia Geforce 8400 GS >>> graphics >>> > >>>>> card. The >>> > >>>>> > >> >> device is working properly and the resources tab shows >>> the >>> > >>>>> available >>> > >>>>> > >> memory >>> > >>>>> > >> >> ranges. >>> > >>>>> > >> >> >>> > >>>>> > >> >> Full VGA passthrough to Windows XP HVM guest operating >>> system >>> > >>>>> using Xen >>> > >>>>> > >> >> virtualization has been realized. I am now able to run >>> 3-D >>> > >>>>> video >>> > >>>>> > >> benchmarks >>> > >>>>> > >> >> on the passed through nVidia GeForce 8400 GS graphics >>> card. >>> > >>>>> > >> >> >>> > >>>>> > >> >> All this is possible using Xen 3.5 hypervisor with Inte= l >>> > >>>>> supplied VGA >>> > >>>>> > >> >> passthrough patches. Instead of using pvops dom0 kernel >>> > >>>>> 2.6.31-rc6 >>> > >>>>> > >> which >>> > >>>>> > >> >> causes Win XP domU to run slowly, I am now using pvops >>> dom0 >>> > >>>>> kernel >>> > >>>>> > >> >> 2.6.30-rc3. >>> > >>>>> > >> >> >>> > >>>>> > >> >> >>> > >>>>> > >> > Jeremy: Are you aware of any changes after 2.6.30-rc3 th= at >>> could >>> > >>>>> cause >>> > >>>>> > >> > this HVM slowness? >>> > >>>>> > >> > >>> > >>>>> > >> >>> > >>>>> > >> I can't think of anything, unless the new swiotlb code is >>> causing >>> > >>>>> > >> problems. >>> > >>>>> > >> >>> > >>>>> > >> > Any tips how it could be debugged? >>> > >>>>> > >> > >>> > >>>>> > >> >>> > >>>>> > >> It would help to isolate where the slowness is coming from= . >>> How >>> > >>>>> much >>> > >>>>> > >> slowdown are we talking about? Is the HVM domain doing lo= ts >>> of IO >>> > >>>>> at >>> > >>>>> > >> the time? Are there any processes using lots of time in >>> dom0? >>> > >>>>> What's >>> > >>>>> > >> the interrupt rate like? >>> > >>>>> > >> >>> > >>>>> > >> J >>> > >>>>> > >> >>> > >>>>> > > >>> > >>>>> > > >>> > >>>>> > > >>> > >>>>> > > >>> > >>>>> > > >>> > >>>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>> >>> > >>> >>> > >>> >>> > >>> >>> > >> >>> > >> >>> > >> >>> > > >>> > > >>> > > >>> > > >>> >> >> >> >> > > > --0016364eea109bad7004737a2b37 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi All,

Here is my working Windows XP Home Edition 32-bit HVM domU g= uest configuration file:

<CODE>

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

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

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

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

#--------------------= ---------------------------------------------------------
# boot on floppy (a), hard disk (c) or CD-ROM (d)
# default: hard disk,= cd-rom, floppy
boot=3D"cd"
#sdl=3D0
#vnc=3D1
#vnccon= sole=3D1
#vncpasswd=3D''

#serial=3D'pty'
#usbd= evice=3D'tablet'
# onboard
#pci =3D [ '00:02.0' ]
# nvidia
pci =3D [ '0= 1:00.0' ]
vcpus=3D2
# No passthrough
#gfx_passthru=3D0
# on= board
#gfx_passthru=3D1
# nvidia
gfx_passthru=3D2

# Can onl= y pass through one usb device at a time
usb=3D1
# USB Unity Green Mouse
#usbdevice =3D 'host:1bcf:0007= 9;
# USB A1pro Black Mouse
usbdevice =3D 'host:15d9:0a41'
= # USB Keyboard
#usbdevice =3D 'host:0603:00f2'
# USB Sony IC = Recorder
#usbdevice =3D 'host:054c:0271'
# USB Lexmark X1270 Color Printe= r
#usbdevice =3D 'host:043d:00ff'
# USB Lexmark X1270 Photo S= canner
#usbdevice =3D 'host:043d:007d'
# USB Lexmark X1270 Ge= neric Hub
#usbdevice =3D 'host:043d:007a'

</CODE>

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

On Mon, Sep 14, 2009 at 2:28 AM= , Mr. Teo En Ming (Zhang Enming) <space.time.universe@gmail.com> w= rote:
USB Device Pass T= hrough Succeeded

How thick I must have been! In my earlier blog post= s with VGA passthrough succeeded, I said that I couldn't passthrough any USB device at all.

As a matter of fact, Timothy had corrected my usbdevice directive in the guest config file in an earlier mailing list post but I didn't take a careful look at the usbdevice directive at all. The correct usbdevice directive is:

usbdevice =3D "host:ve= ndorid:productid"

I had used

usbdevice =3D [ 'host:= vendorid:productid' ]

which is completely erroneous. I need to o= mit the square brackets for USB device passthrough to work.

I have now successfully passed through the USB optical mouse to the Windows XP Home HVM domU and using on-screen keyboard as a substitute for the physical USB keyboard.

The reason I am doing this is because= QEMU with Xen can only allow one USB device to be passed through at any on= e time.

It was so obvious and I missed the obvious!

Sorry Tim= othy!


--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mech= anical Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) Nat= ional University of Singapore
Blog URL: http://teo-en-ming-aka-zhang= -enming.blogspot.com
Email: s= pace.time.universe@gmail.com
MSN: teoenming@hotmail.com
Mobile Phone: +65-964= 8-9798
Street: Bedok Reservoir Road
Republic of Singapore

On Mon, Sep 14, 2009 at 2:22 AM, Mr. Teo En Ming (Zhan= g Enming) <space.time.universe@gmail.com> wrote:=
Dear Pasi,
Yes, I have tried the nomodeset kernel parameter without result.

I = couldn't get Jeremy's rebase/master branch (pvops dom 0 kernel 2.6.31) to work despite disabling all of USB support in the kernel. I will troubleshoot this issue with the serial console enabled another time.

Meanwhile, I got Linus' mainline kernel 2.6.31 to work on my system. So apparently the dom 0 patched kernel 2.6.31 has some issues or I did not configure it properly.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(H= ons)(Mechanical Engineering)
Alma Maters:
(1) Singapore Polytechnic(2) National University of Singapore
Blog URL: http://teo-en-ming-= aka-zhang-enming.blogspot.com
Email: s= pace.time.universe@gmail.com
MSN: teoenming@hotmail.com
Mobile Phone: +65-964= 8-9798
Street: Bedok Reservoir Road
Republic of Singapore

On Sun, Sep 13, 2009 at 5:12 PM, Pasi K=E4rkk=E4inen <pasik@iki.fi&= gt; wrote:
On Sun, Sep 13, 2009 at 08:31:26AM +0800, Mr. Teo En Ming (Zhang Enmin= g) wrote:
> I have disabled all USB support in the kernel but I still couldn't= get pvops
> dom0-patched kernel 2.6.31 final to complete loading. All I get is a > blinking cursor at the top left hand corner of the monitor.
>

Did you try "nomodeset" parameter for the dom0 kernel?

Have you tried setting up a serial console and capturing the kernel boot messages?

-- Pasi

> --
> 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@gmail.com
> MSN: teoenm= ing@hotmail.com
> Mobile Phone: +65-9648-9798
> Street: Bedok Reservoir Road
> Republic of Singapore
>
> On Sat, Sep 12, 2009 at 8:23 PM, Mr. Teo En Ming (Zhang Enming) < > spa= ce.time.universe@gmail.com> wrote:
>
> > OK I have UHCI, OHCI, EHCI, and xHCI all disabled in the kernel b= ut I still
> > can't get pvops dom 0 kernel 2.6.31 final to boot up complete= ly.
> >
> > Really puzzled.
> >
> > --
> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mecha= nical
> > 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@gmail.com
> > MSN: t= eoenming@hotmail.com
> > Mobile Phone: +65-9648-9798
> > Street: Bedok Reservoir Road
> > Republic of Singapore
> >
> > On Sat, Sep 12, 2009 at 6:11 PM, Mr. Teo En Ming (Zhang Enming) &= lt;
> > space.time.universe@gmail.com> wrote:
> >
> >> I have disabled USB 1.0 and USB 2.0 drivers simultaneously an= d enabled USB
> >> 3.0 driver but the kernel stops loading.
> >>
> >> Then I totally disabled all USB support by passing the "= nousb" parameter
> >> to the kernel but it still stops loading.
> >>
> >> pvops dom 0 2.6.31 final can't work.
> >>
> >> --
> >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(M= echanical
> >> Engineering)
> >> Alma Maters:
> >> (1) Singapore Polytechnic
> >> (2) National University of Singapore
> >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.co= m
> >> Email: space.time.universe@gmail.com
> >> MSN: teoenming@hotmail.com
> >> Mobile Phone: +65-9648-9798
> >> Street: Bedok Reservoir Road
> >> Republic of Singapore
> >>
> >> On Sat, Sep 12, 2009 at 4:44 PM, Mr. Teo En Ming (Zhang Enmin= g) <
> >> space.time.universe@gmail.com> wrote:
> >>
> >>> After disabling the USB 1.0 driver, but leaving the USB 2= .0 driver
> >>> compiled statically into the kernel, I get an error with = the USB 2.0 driver.
> >>> This means I cannot use either of the USB 1.0 and USB 2.0= drivers.
> >>>
> >>> Please refer to my blog post here:
> >>>
> >>>
> >>> h= ttp://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/after-disabling-usb= -10-host-controller.html
> >>>
> >>> --
> >>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hon= s)(Mechanical
> >>> Engineering)
> >>> Alma Maters:
> >>> (1) Singapore Polytechnic
> >>> (2) National University of Singapore
> >>> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspo= t.com
> >>> Email: space.time.universe@gmail.com
> >>> MSN: teoenming@hotmail.com
> >>> Mobile Phone: +65-9648-9798
> >>> Street: Bedok Reservoir Road
> >>> Republic of Singapore
> >>>
> >>> On Sat, Sep 12, 2009 at 10:52 AM, Mr. Teo En Ming (Zhang = Enming) <
> >>> space.time.universe@gmail.com> wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>> I have tried pvops dom 0 kernel 2.6.31 final from Jer= emy's tree.
> >>>>
> >>>> But it gave me a USB host controller died error.
> >>>>
> >>>> Please refer to the error output here:
> >>>>
> >>>>
> >>>> = http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/error-with-pv-ops-= dom-0-kernel-2631.html
> >>>>
> >>>> --
> >>>> 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.blo= gspot.com
> >>>> Email: space.time.universe@gmail.com
> >>>> MSN: teoenming@hotmail.com
> >>>> Mobile Phone: +65-9648-9798
> >>>> Street: Bedok Reservoir Road
> >>>> Republic of Singapore
> >>>>
> >>>> On Sat, Sep 12, 2009 at 12:03 AM, Pasi K=E4rkk=E4inen= <pasik@iki.fi>= wrote:
> >>>>
> >>>>> On Fri, Sep 11, 2009 at 11:37:15PM +0800, Mr. Teo= En Ming (Zhang
> >>>>> Enming) wrote:
> >>>>> > Hi,
> >>>>> >
> >>>>> > Please refer to the disk I/O benchmark resul= ts here:
> >>>>> >
> >>>>> >
> >>>>> http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/09/disk-io-benchma= rk-results-with-xen.html
> >>>>> >
> >>>>> > Results show that Win XP HVM guest runs fast= er in 2.6.30-rc3 than
> >>>>> > 2.6.31-rc6.
> >>>>> >
> >>>>>
> >>>>> Btw you might also want to test with the latest r= ebase/master tree;
> >>>>> it's
> >>>>> at Linux 2.6.31 final now.
> >>>>>
> >>>>> -- Pasi
> >>>>>
> >>>>> > --
> >>>>> > Mr. Teo En Ming (Zhang Enming) Dip(Mechatron= ics)
> >>>>> BEng(Hons)(Mechanical
> >>>>> > Engineering)
> >>>>> > Alma Maters:
> >>>>> > (1) Singapore Polytechnic
> >>>>> > (2) National University of Singapore
> >>>>> > Blog URL: http://teo-en-ming-aka-zhang-e= nming.blogspot.com
> >>>>> > Email: space.time.universe@gmail.com
> >>>>> > MSN: teoenming@hotmail.com
> >>>>> > Mobile Phone: +65-9648-9798
> >>>>> > Street: Bedok Reservoir Road
> >>>>> > Republic of Singapore
> >>>>> >
> >>>>> > On Fri, Sep 11, 2009 at 8:19 AM, Mr. Teo En = Ming (Zhang Enming) <
> >>>>> > space.time.universe@gmail.com> wrote:
> >>>>> >
> >>>>> > > Hi,
> >>>>> > >
> >>>>> > > I will try to stop unnecessary services= on Dom 0 and do a disk I/O
> >>>>> > > benchmark between WinXP domU on 2.6.30-= rc3 and 2.6.31-rc6 tonight
> >>>>> (Singapore
> >>>>> > > time). That will be more conclusive. > >>>>> > >
> >>>>> > > --
> >>>>> > > Mr. Teo En Ming (Zhang Enming) Dip(Mech= atronics)
> >>>>> BEng(Hons)(Mechanical
> >>>>> > > Engineering)
> >>>>> > > Alma Maters:
> >>>>> > > (1) Singapore Polytechnic
> >>>>> > > (2) National University of Singapore > >>>>> > > Blog URL: http://teo-en-ming-aka-zh= ang-enming.blogspot.com
> >>>>> > > Email: space.time.universe@gmail.com
> >>>>> > > MSN: teoenming@hotmail.com
> >>>>> > > Mobile Phone: +65-9648-9798
> >>>>> > > Street: Bedok Reservoir Road
> >>>>> > > Republic of Singapore
> >>>>> > >
> >>>>> > > On Fri, Sep 11, 2009 at 2:17 AM, Jeremy= Fitzhardinge <
> >>>>> jeremy@goop.org>wrote:
> >>>>> > >
> >>>>> > >> On 09/10/09 07:03, Pasi K=E4rkk=E4i= nen wrote:
> >>>>> > >> > On Thu, Sep 10, 2009 at 08:28:= 03PM +0800, Mr. Teo En Ming (Zhang
> >>>>> Enming)
> >>>>> > >> wrote:
> >>>>> > >> >
> >>>>> > >> >> Dear All,
> >>>>> > >> >>
> >>>>> > >> >> Here is my latest video pr= esentation on VGA passthrough. Please
> >>>>> check
> >>>>> > >> out my
> >>>>> > >> >> blog at http://teo-en= -ming-aka-zhang-enming.blogspot.com/ or
> >>>>> the
> >>>>> > >> Youtube
> >>>>> > >> >> link at http://www.youtube= .com/watch?v=3D1ia3IwG6tp4
> >>>>> > >> >>
> >>>>> > >> >> The "not enough free = resources" problem for nVidia Geforce 8400
> >>>>> GS PCI
> >>>>> > >> >> Express x16 graphics card = in earlier presentation videos:
> >>>>> > >> >>
> >>>>> > >> >> http://www.youtube.com/watch?= v=3DHNEiSI...<
> >>>>> > >> http://www.youtube.com/watch?v=3DHN= EiSInrav0>
> >>>>> > >> >>
> >>>>> > >> >> http://www.youtube.com/watch?= v=3D_hOT_9...<
> >>>>> > >> http://www.youtube.com/watch?v=3D_h= OT_9LIG5w>
> >>>>> > >> >>
> >>>>> > >> >> was fixed. Device manager = in Windows XP HVM domU no longer
> >>>>> shows an
> >>>>> > >> >> exclamation mark besides t= he nVidia Geforce 8400 GS graphics
> >>>>> card. The
> >>>>> > >> >> device is working properly= and the resources tab shows the
> >>>>> available
> >>>>> > >> memory
> >>>>> > >> >> ranges.
> >>>>> > >> >>
> >>>>> > >> >> Full VGA passthrough to Wi= ndows XP HVM guest operating system
> >>>>> using Xen
> >>>>> > >> >> virtualization has been re= alized. I am now able to run 3-D
> >>>>> video
> >>>>> > >> benchmarks
> >>>>> > >> >> on the passed through nVid= ia GeForce 8400 GS graphics card.
> >>>>> > >> >>
> >>>>> > >> >> All this is possible using= Xen 3.5 hypervisor with Intel
> >>>>> supplied VGA
> >>>>> > >> >> passthrough patches. Inste= ad of using pvops dom0 kernel
> >>>>> 2.6.31-rc6
> >>>>> > >> which
> >>>>> > >> >> causes Win XP domU to run = slowly, I am now using pvops dom0
> >>>>> kernel
> >>>>> > >> >> 2.6.30-rc3.
> >>>>> > >> >>
> >>>>> > >> >>
> >>>>> > >> > Jeremy: Are you aware of any c= hanges after 2.6.30-rc3 that could
> >>>>> cause
> >>>>> > >> > this HVM slowness?
> >>>>> > >> >
> >>>>> > >>
> >>>>> > >> I can't think of anything, unle= ss the new swiotlb code is causing
> >>>>> > >> problems.
> >>>>> > >>
> >>>>> > >> > Any tips how it could be debug= ged?
> >>>>> > >> >
> >>>>> > >>
> >>>>> > >> It would help to isolate where the = slowness is coming from. =A0How
> >>>>> much
> >>>>> > >> slowdown are we talking about? =A0I= s the HVM domain doing lots of IO
> >>>>> at
> >>>>> > >> the time? =A0Are there any processe= s using lots of time in dom0?
> >>>>> =A0What's
> >>>>> > >> the interrupt rate like?
> >>>>> > >>
> >>>>> > >> =A0 =A0J
> >>>>> > >>
> >>>>> > >
> >>>>> > >
> >>>>> > >
> >>>>> > >
> >>>>> > >
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> >
> >










--0016364eea109bad7004737a2b37-- --===============1064822696== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1064822696==--