From: "Mr. Teo En Ming (Zhang Enming)" Subject: Re: Xen 3.5-unstable, pv-ops dom0 kernel 2.6.31.4, Windows XP Home HVM Virtual Machine, PCI Express x16 Graphics Passthrough, Firewire Controller Passthrough, HD Audio Controller Passthrough, 3D Video and Disk I/O Benchmark Results Date: Sat, 24 Oct 2009 03:17:52 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: xen-devel@lists.xensource.com, xen-users@lists.xensource.com Cc: space.time.universe@gmail.com List-Id: xen-devel@lists.xenproject.org I wrote the following linux shell script which I can run in the background in dom0 just before starting my Windows XP Home HVM guest. This script collects xm dmesg output, pipes it to a file and also copies qemu-dm, xend.log and other Xen logs to my home directory 10 minutes after my winxp home domU has started. It avoids the need to ssh or serial console into dom0 to collect the logs. #!/bin/sh KERNELVER=3D`uname -r` DATESTAMP=3D23oct2009 TIMESTAMP=3D2026 DELAY=3D10m sleep $DELAY xm dmesg > ~enming/xm-dmesg-$KERNELVER-$DATESTAMP-$TIMESTAMP.txt mkdir ~enming/xen-logs/$DATESTAMP-$TIMESTAMP cp -f /var/log/xen/* ~enming/xen-logs/$DATESTAMP-$TIMESTAMP --=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 Sat, Oct 24, 2009 at 3:00 AM, Mr. Teo En Ming (Zhang Enming) wrote: > I have to stop the boinc-client daemon in dom0 before starting Windows > XP Home domU because running SETI@home in dom0 while Windows XP HVM > guest is starting causes the following BSOD: > > The device driver got stuck in an infinite loop. > > STOP 0x000000EA (0x8ADF8260, 0x8ACBF008, 0xB84DBCBC, 0x00000001) > > nv4_disp > > -- > 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, Oct 23, 2009 at 11:58 PM, Mr. Teo En Ming (Zhang Enming) > wrote: >> Linux bash shell scripts for PCI device passthrough: >> >> (1) passthru-nvidia.sh >> >> #!/bin/sh >> echo "10de 06e4" > /sys/bus/pci/drivers/pci-stub/new_id >> echo "0000:01:00.0" > /sys/bus/pci/devices/0000:01:00.0/driver/unbind >> echo "0000:01:00.0" > /sys/bus/pci/drivers/pci-stub/bind >> >> (2) passthru-firewire.sh >> >> #!/bin/sh >> echo "11c1 5811" > /sys/bus/pci/drivers/pci-stub/new_id >> echo "0000:02:01.0" > /sys/bus/pci/devices/0000:02:01.0/driver/unbind >> echo "0000:02:01.0" > /sys/bus/pci/drivers/pci-stub/bind >> >> #Unload firewire driver >> rmmod firewire_ohci >> rmmod firewire_core >> >> (3) passthru-audio.sh >> >> #!/bin/sh >> echo "8086 3a6e" > /sys/bus/pci/drivers/pci-stub/new_id >> echo "0000:00:1b.0" > /sys/bus/pci/devices/0000:00:1b.0/driver/unbind >> echo "0000:00:1b.0" > /sys/bus/pci/drivers/pci-stub/bind >> >> rmmod snd_hda_intel >> >> >> Windows XP Home Edition SP3 32-bit HVM virtual machine configuration >> file /etc/xen/winxphome32: >> >> #import os, re >> #arch =3D os.uname()[4] >> #if re.search('64', arch): >> # =A0 =A0arch_libdir =3D 'lib64' >> #else: >> # =A0 =A0arch_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 >> vnclisten=3D"192.168.1.2" >> vncdisplay=3D1 >> vncunused=3D1 >> vncconsole=3D0 >> vncpasswd=3D'' >> >> #serial=3D'pty' >> #usbdevice=3D'tablet' >> # onboard >> #pci =3D [ '00:02.0' ] >> # nVidia Geforce 8400 GS & firewire controller & HD audio controller >> pci =3D [ '01:00.0','02:01.0','00:1b.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' >> >> All-in-one script to call the above-mentioned scripts and HVM config: >> >> #!/bin/sh >> >> # Stops the BOINC Core Client >> service boinc-client stop >> >> # Passthrough NVIDIA graphics card >> /etc/xen/scripts/passthru-nvidia.sh >> # Passthrough Firewire port >> /etc/xen/scripts/passthru-firewire.sh >> # Passthrough Audio Controller >> /etc/xen/scripts/passthru-audio.sh >> >> ls -ltr /sys/bus/pci/drivers/pci-stub/ >> sleep 10 >> >> # Start Windows XP guest domain >> xm create winxphome32 >> >> -- >> 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, Oct 23, 2009 at 11:41 PM, Mr. Teo En Ming (Zhang Enming) >> wrote: >>> Configuration for pv-ops dom0 kernel 2.6.31.4: >>> >>> ---snipped--- >>> >>> -- >>> 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, Oct 23, 2009 at 11:38 PM, Mr. Teo En Ming (Zhang Enming) >>> wrote: >>>> Multiple USB devices passthrough to Windows XP Home HVM domU status: >>>> >>>> 1st USB device can be specified in HVM configuration file. As a matter >>>> of fact, only 1 USB device can be specified in HVM config. Subsequent >>>> USB devices (2nd, 3rd, 4th, and so on) can be passed through to Win XP >>>> Home HVM virtual machine by using "usb_add host:vendorid:productid" >>>> command in QEMU monitor of the VNC server built into QEMU itself. >>>> >>>> >>>> -- >>>> 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, Oct 23, 2009 at 11:17 PM, Mr. Teo En Ming (Zhang Enming) >>>> wrote: >>>>> Attached screenshots for the disk drives and network adapters in >>>>> device manager after installation of the Xen GPLPV drivers. >>>>> >>>>> -- >>>>> 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 Fri, Oct 23, 2009 at 11:14 PM, Mr. Teo En Ming (Zhang Enming) >>>>> wrote: >>>>>> Intel DQ45CB HD Audio Controller Passthrough Status: Successful >>>>>> >>>>>> Attached screenshots for the HD audio controller in Device Manager. >>>>>> >>>>>> -- >>>>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanic= al >>>>>> 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, Oct 23, 2009 at 11:11 PM, Mr. Teo En Ming (Zhang Enming) >>>>>> wrote: >>>>>>> OHCI IEEE 1394 Firewire Controller passthrough status: Not Successf= ul >>>>>>> >>>>>>> Attached screenshots for the firewire controller in device manager. >>>>>>> >>>>>>> -- >>>>>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechani= cal >>>>>>> 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, Oct 23, 2009 at 11:06 PM, Mr. Teo En Ming (Zhang Enming) >>>>>>> wrote: >>>>>>>> Version of Xen GPL PV Drivers Installed: 07/15/2009 0.10.0.86 >>>>>>>> >>>>>>>> VGA / GFX pass-through status: Successful >>>>>>>> >>>>>>>> Attached screenshots for nVidia GeForce 8400 GS PCI Express x16 >>>>>>>> passthrough in Win XP Home DomU device manager. >>>>>>>> >>>>>>>> -- >>>>>>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechan= ical >>>>>>>> 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, Oct 23, 2009 at 10:54 PM, Mr. Teo En Ming (Zhang Enming) >>>>>>>> wrote: >>>>>>>>> Attached screenshots for Passmark PerformanceTest 7.0 3D Graphics >>>>>>>>> benchmark results. >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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: teoenming@hotmail.com >>>>>>>>> Mobile Phone: +65-9648-9798 >>>>>>>>> Street: Bedok Reservoir Road >>>>>>>>> Republic of Singapore >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Fri, Oct 23, 2009 at 10:49 PM, Mr. Teo En Ming (Zhang Enming) >>>>>>>>> wrote: >>>>>>>>>> Attached screenshots for Passmark Performance Test 7.0 Disk I/O >>>>>>>>>> benchmark results. >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mech= anical >>>>>>>>>> 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, Oct 23, 2009 at 10:45 PM, Mr. Teo En Ming (Zhang Enming) >>>>>>>>>> wrote: >>>>>>>>>>> Host Operating System Domain 0: Fedora 11 Linux x86-64 64-bit >>>>>>>>>>> Domain U: Windows XP Home Edition SP3 32-bit HVM Virtual Machin= e >>>>>>>>>>> Xen Hypervisor Version: 3.5-unstable changeset 20143 >>>>>>>>>>> Paravirt-Operations Dom0 Kernel: 2.6.31.4 (Jeremy Fitzhardinge'= s git tree) >>>>>>>>>>> Intel GFX Passthrough Patches Applied: Version 1 (Provided by H= an Weidong Intel) >>>>>>>>>>> >>>>>>>>>>> Motherboard: Intel DQ45CB >>>>>>>>>>> BIOS Version: 0093 >>>>>>>>>>> Processor: Intel Pentium Dual Core E6300 >>>>>>>>>>> Graphics Card: nVidia GeForce 8400 GS PCI Express x16 >>>>>>>>>>> Memory: 8GB DDR2-800 >>>>>>>>>>> >>>>>>>>>>> Attached screenshots for 3 iterations of the hdtach disk I/O be= nchmark >>>>>>>>>>> test results. >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mec= hanical >>>>>>>>>>> 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 >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >