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

[Xen-devel] Re: Xen 3.5-unstable, pv-ops dom0 kernel 2.6.31.4, Windows X

To: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] 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
From: "Mr. Teo En Ming (Zhang Enming)" <space.time.universe@xxxxxxxxx>
Date: Sat, 24 Oct 2009 00:08:00 +0800
Cc: space.time.universe@xxxxxxxxx
Delivery-date: Fri, 23 Oct 2009 09:08:58 -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=xUBgD5+7Qi4Jm8L+wKDLpNns/fhRM1ee+MDCbl9aack=; b=KYTTBAFN9lppaKl0d1d2JrhU199e0ctH/UzEjGRW6iU8bX4JWcKxXLPmMRMvXjtFo4 /qoxMWSsXKVIzq8ODqVNND8lt6oz/uvf/ynG/BJynAi8+JBYe3b77wFS2To7JsaOi8Ev Y2FvQP79YGXhrJT5xAgj5YlNUkSynKGxuCa1o=
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=oltIuspVozp7h729IR3sdx3eZzW5eJN2oDTTnKJKPXOlEvRegSK4pOIKiQ7mRdcUAK NX9OtIRGhKMJRHSKjuaB0fk9ZHPFKBV3bed6Ezg96tHMhcMhSaj2A2coUBYWffGi+SQ6 dBZN4Zeaj+6EPOP3NYCJC/Go19uRijbEe9Vqw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f712b9cf0910230858i39866df7x73c8242647a112a0@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: <f712b9cf0910230745t2825ec4egb2e39894166fdf4f@xxxxxxxxxxxxxx> <f712b9cf0910230749t34d02ccoed405d03b8ada6f1@xxxxxxxxxxxxxx> <f712b9cf0910230754j55a0bba6i3d33796f9786126@xxxxxxxxxxxxxx> <f712b9cf0910230806y7b3cc992va62aff3b5c62d874@xxxxxxxxxxxxxx> <f712b9cf0910230811g71600e4aqe21c1e8a9063617c@xxxxxxxxxxxxxx> <f712b9cf0910230814i159bb35byd42619d3fdd527b3@xxxxxxxxxxxxxx> <f712b9cf0910230817o485aad9jfb3b6d7e94b4ed42@xxxxxxxxxxxxxx> <f712b9cf0910230838q1e795c10o26cdbc14a2f5a46f@xxxxxxxxxxxxxx> <f712b9cf0910230841o1068dc83la5bd3053219c4521@xxxxxxxxxxxxxx> <f712b9cf0910230858i39866df7x73c8242647a112a0@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
My presentation videos on Xen and VGA passthrough on Youtube:

http://www.youtube.com/watch?v=HNEiSInrav0

http://www.youtube.com/watch?v=_hOT_9LIG5w

http://www.youtube.com/watch?v=1ia3IwG6tp4

http://www.youtube.com/watch?v=5tLzYqIJ7Q0

You can also check out my blog for more details.

-- 
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 Fri, Oct 23, 2009 at 11:58 PM, Mr. Teo En Ming (Zhang Enming)
<space.time.universe@xxxxxxxxx> 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 = 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="192.168.1.2"
> vncdisplay=1
> vncunused=1
> vncconsole=0
> vncpasswd=''
>
> #serial='pty'
> #usbdevice='tablet'
> # onboard
> #pci = [ '00:02.0' ]
> # nVidia Geforce 8400 GS & firewire controller & HD audio controller
> pci = [ '01:00.0','02:01.0','00:1b.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'
>
> 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@xxxxxxxxx
> MSN: teoenming@xxxxxxxxxxx
> 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)
> <space.time.universe@xxxxxxxxx> 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@xxxxxxxxx
>> MSN: teoenming@xxxxxxxxxxx
>> 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)
>> <space.time.universe@xxxxxxxxx> 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@xxxxxxxxx
>>> MSN: teoenming@xxxxxxxxxxx
>>> 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)
>>> <space.time.universe@xxxxxxxxx> 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)(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 Fri, Oct 23, 2009 at 11:14 PM, Mr. Teo En Ming (Zhang Enming)
>>>> <space.time.universe@xxxxxxxxx> 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)(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 Fri, Oct 23, 2009 at 11:11 PM, Mr. Teo En Ming (Zhang Enming)
>>>>> <space.time.universe@xxxxxxxxx> wrote:
>>>>>> OHCI IEEE 1394 Firewire Controller passthrough status: Not Successful
>>>>>>
>>>>>> Attached screenshots for the firewire controller in device manager.
>>>>>>
>>>>>> --
>>>>>> 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 Fri, Oct 23, 2009 at 11:06 PM, Mr. Teo En Ming (Zhang Enming)
>>>>>> <space.time.universe@xxxxxxxxx> 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)(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 Fri, Oct 23, 2009 at 10:54 PM, Mr. Teo En Ming (Zhang Enming)
>>>>>>> <space.time.universe@xxxxxxxxx> wrote:
>>>>>>>> Attached screenshots for Passmark PerformanceTest 7.0 3D Graphics
>>>>>>>> benchmark results.
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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 Fri, Oct 23, 2009 at 10:49 PM, Mr. Teo En Ming (Zhang Enming)
>>>>>>>> <space.time.universe@xxxxxxxxx> wrote:
>>>>>>>>> Attached screenshots for Passmark Performance Test 7.0 Disk I/O
>>>>>>>>> benchmark results.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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 Fri, Oct 23, 2009 at 10:45 PM, Mr. Teo En Ming (Zhang Enming)
>>>>>>>>> <space.time.universe@xxxxxxxxx> wrote:
>>>>>>>>>> Host Operating System Domain 0: Fedora 11 Linux x86-64 64-bit
>>>>>>>>>> Domain U: Windows XP Home Edition SP3 32-bit HVM Virtual Machine
>>>>>>>>>> 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 Han 
>>>>>>>>>> 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 
>>>>>>>>>> benchmark
>>>>>>>>>> test results.
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> 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
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

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

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