From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mr. Teo En Ming (Zhang Enming)" Subject: Re: Video Presentation on PCI Express x16 VGA PassThrough to Xen-based Windows XP Home Edition HVM Virtual Machine Date: Mon, 07 Sep 2009 22:56:00 +0800 Message-ID: <4AA51F00.6050502@asiasoftsea.net> References: <4AA511FB.40300@asiasoftsea.net> Reply-To: enming.teo@asiasoftsea.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1644191668==" Return-path: In-Reply-To: <4AA511FB.40300@asiasoftsea.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: enming.teo@asiasoftsea.net Cc: "'timothy.moore@expidas.net'" , "xen-devel@lists.xensource.com" , "Han, Weidong" , bengheng@eecs.umich.edu List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1644191668== Content-Type: multipart/alternative; boundary="------------040307060509040604020409" This is a multi-part message in MIME format. --------------040307060509040604020409 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Here is my "xm dmesg" output. Important lines have been bolded and underlined. _*(XEN) [VT-D]iommu.c:1292:d0 domain_context_unmap:PCIe: bdf = 1:0.0 (XEN) [VT-D]iommu.c:1178:d0 domain_context_mapping:PCIe: bdf = 1:0.0*_ (XEN) domctl.c:887:d0 ioport_map:add f_gport=3b0 f_mport=3b0 np=c (XEN) domctl.c:887:d0 ioport_map:add f_gport=3c0 f_mport=3c0 np=20 (XEN) domctl.c:836:d0 memory_map:add: gfn=a0 mfn=a0 nr_mfns=20 (XEN) [VT-D]io.c:284:d0 VT-d irq bind: m_irq = 37 device = 4 intx = 0 (XEN) HVM1: HVM Loader (XEN) HVM1: Detected Xen v3.5-unstable (XEN) HVM1: CPU speed is 2800 MHz (XEN) irq.c:243: Dom1 PCI link 0 changed 0 -> 5 (XEN) HVM1: PCI-ISA link 0 routed to IRQ5 (XEN) irq.c:243: Dom1 PCI link 1 changed 0 -> 10 (XEN) HVM1: PCI-ISA link 1 routed to IRQ10 (XEN) irq.c:243: Dom1 PCI link 2 changed 0 -> 11 (XEN) HVM1: PCI-ISA link 2 routed to IRQ11 (XEN) irq.c:243: Dom1 PCI link 3 changed 0 -> 5 (XEN) HVM1: PCI-ISA link 3 routed to IRQ5 (XEN) HVM1: pci dev 01:2 INTD->IRQ5 (XEN) HVM1: pci dev 01:3 INTA->IRQ10 (XEN) HVM1: pci dev 02:0 INTA->IRQ11 (XEN) HVM1: pci dev 03:0 INTA->IRQ5 _*(XEN) HVM1: Make vBAR = pBAR of assigned gfx*_ (XEN) domctl.c:836:d0 memory_map:add: gfn=d2000 mfn=d2000 nr_mfns=1000 (XEN) domctl.c:836:d0 memory_map:add: gfn=c0000 mfn=c0000 nr_mfns=10000 (XEN) domctl.c:836:d0 memory_map:add: gfn=d0000 mfn=d0000 nr_mfns=2000 (XEN) domctl.c:887:d0 ioport_map:add f_gport=d000 f_mport=d000 np=80 (XEN) HVM1: pci dev 02:0 bar 14 size 01000000: e0000008 (XEN) HVM1: pci dev 02:0 bar 10 size 00000100: 0000c001 (XEN) HVM1: pci dev 03:0 bar 10 size 00000100: 0000c101 (XEN) HVM1: pci dev 03:0 bar 14 size 00000100: e1000000 (XEN) HVM1: pci dev 01:2 bar 20 size 00000020: 0000c201 (XEN) HVM1: pci dev 01:1 bar 20 size 00000010: 0000c221 (XEN) HVM1: Multiprocessor initialisation: (XEN) HVM1: - CPU0 ... 36-bit phys ... fixed MTRRs ... var MTRRs [3/8] ... done. (XEN) HVM1: - CPU1 ... 36-bit phys ... fixed MTRRs ... var MTRRs [3/8] ... done. (XEN) HVM1: Testing HVM environment: (XEN) HVM1: - REP INSB across page boundaries ... passed (XEN) HVM1: - GS base MSRs and SWAPGS ... passed (XEN) HVM1: Passed 2 of 2 tests (XEN) HVM1: Writing SMBIOS tables ... (XEN) HVM1: Loading ROMBIOS ... (XEN) HVM1: 11900 bytes of ROMBIOS high-memory extensions: (XEN) HVM1: Relocating to 0xfc000000-0xfc002e7c ... done (XEN) HVM1: Creating MP tables ... _*(XEN) HVM1: Loading VGABIOS of passthroughed gfx ...*_ (XEN) HVM1: Loading PCI Option ROM ... (XEN) HVM1: - Manufacturer: http://etherboot.org (XEN) HVM1: - Product name: gPXE (XEN) HVM1: Loading ACPI ... (XEN) HVM1: - Lo data: 000ea020-000ea04f (XEN) HVM1: - Hi data: fc003000-fc01261f (XEN) HVM1: vm86 TSS at fc012800 (XEN) HVM1: BIOS map: _*(XEN) HVM1: c0000-cf7ff: VGA BIOS*_ (XEN) HVM1: cf800-dbfff: Etherboot ROM (XEN) HVM1: eb000-eb175: SMBIOS tables (XEN) HVM1: f0000-fffff: Main BIOS (XEN) HVM1: Invoking ROMBIOS ... (XEN) HVM1: $Revision: 1.221 $ $Date: 2008/12/07 17:32:29 $ (XEN) HVM1: *** int 15h function AX=5f14, BX=078f not yet supported! (XEN) HVM1: Bochs BIOS - build: 06/23/99 (XEN) HVM1: $Revision: 1.221 $ $Date: 2008/12/07 17:32:29 $ (XEN) HVM1: Options: apmbios pcibios eltorito PMM (XEN) HVM1: (XEN) HVM1: ata0-0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 (XEN) HVM1: ata0 master: QEMU HARDDISK ATA-7 Hard-Disk (51200 MBytes) (XEN) HVM1: IDE time out (XEN) HVM1: ata1 master: QEMU DVD-ROM ATAPI-4 CD-Rom/DVD-Rom (XEN) HVM1: IDE time out (XEN) HVM1: (XEN) HVM1: (XEN) HVM1: (XEN) HVM1: Press F12 for boot menu. (XEN) HVM1: (XEN) HVM1: Booting from Hard Disk... (XEN) HVM1: Booting from 0000:7c00 (XEN) HVM1: int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) HVM1: *** int 15h function AX=e980, BX=0066 not yet supported! (XEN) mce.c:694:d1 MCE: rdmsr MCG_CAP 0x806 (XEN) mce.c:714:d1 MCE: rdmsr MC0_CTL 0xffffffffffffffff (XEN) mce.c:694:d1 MCE: rdmsr MCG_CAP 0x806 (XEN) mce.c:694:d1 MCE: rdmsr MCG_CAP 0x806 (XEN) irq.c:243: Dom1 PCI link 0 changed 5 -> 0 (XEN) irq.c:243: Dom1 PCI link 1 changed 10 -> 0 (XEN) irq.c:243: Dom1 PCI link 2 changed 11 -> 0 (XEN) irq.c:243: Dom1 PCI link 3 changed 5 -> 0 (XEN) domctl.c:846:d0 memory_map:remove: gfn=d2000 mfn=d2000 nr_mfns=1000 (XEN) domctl.c:846:d0 memory_map:remove: gfn=c0000 mfn=c0000 nr_mfns=10000 (XEN) domctl.c:846:d0 memory_map:remove: gfn=d0000 mfn=d0000 nr_mfns=2000 (XEN) domctl.c:911:d0 ioport_map:remove f_gport=d000 f_mport=d000 np=80 (XEN) domctl.c:836:d0 memory_map:add: gfn=d2000 mfn=d2000 nr_mfns=1000 (XEN) domctl.c:836:d0 memory_map:add: gfn=c0000 mfn=c0000 nr_mfns=10000 (XEN) domctl.c:836:d0 memory_map:add: gfn=d0000 mfn=d0000 nr_mfns=2000 (XEN) domctl.c:887:d0 ioport_map:add f_gport=d000 f_mport=d000 np=80 Thank you. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Company Website: http://www.asiasoft.sg/ Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: Singapore Polytechnic, National University of Singapore On 09/07/2009 10:00 PM, Mr. Teo En Ming (Zhang Enming) wrote: > OK I have just reached home after work. > > >Teo, > > >Please can you post your > > >1) lspci output from Dom0 for your VGA card > > 01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400 GS > (rev a1) (prog-if 00 [VGA controller]) > > 01:00.0 0300: 10de:06e4 (rev a1) (prog-if 00 [VGA controller]) > > >2) qemu log for DomU > > Will post later when I reboot with Serial Console > > >3) xm dmesg output > > Will post later when I reboot with Serial Console > > >4) Modifications you made to vBAR-pBAR patch > > I did not make any modifications to the vbar-pbar patch. I used the > 1:1 map patch as provided by Weidong Intel verbatim. > > >Thanks Tim > > Thank you. > --------------040307060509040604020409 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,

Here is my "xm dmesg" output. Important lines have been bolded and underlined.

(XEN) [VT-D]iommu.c:1292:d0 domain_context_unmap:PCIe: bdf = 1:0.0
(XEN) [VT-D]iommu.c:1178:d0 domain_context_mapping:PCIe: bdf = 1:0.0

(XEN) domctl.c:887:d0 ioport_map:add f_gport=3b0 f_mport=3b0 np=c
(XEN) domctl.c:887:d0 ioport_map:add f_gport=3c0 f_mport=3c0 np=20
(XEN) domctl.c:836:d0 memory_map:add: gfn=a0 mfn=a0 nr_mfns=20
(XEN) [VT-D]io.c:284:d0 VT-d irq bind: m_irq = 37 device = 4 intx = 0
(XEN) HVM1: HVM Loader
(XEN) HVM1: Detected Xen v3.5-unstable
(XEN) HVM1: CPU speed is 2800 MHz
(XEN) irq.c:243: Dom1 PCI link 0 changed 0 -> 5
(XEN) HVM1: PCI-ISA link 0 routed to IRQ5
(XEN) irq.c:243: Dom1 PCI link 1 changed 0 -> 10
(XEN) HVM1: PCI-ISA link 1 routed to IRQ10
(XEN) irq.c:243: Dom1 PCI link 2 changed 0 -> 11
(XEN) HVM1: PCI-ISA link 2 routed to IRQ11
(XEN) irq.c:243: Dom1 PCI link 3 changed 0 -> 5
(XEN) HVM1: PCI-ISA link 3 routed to IRQ5
(XEN) HVM1: pci dev 01:2 INTD->IRQ5
(XEN) HVM1: pci dev 01:3 INTA->IRQ10
(XEN) HVM1: pci dev 02:0 INTA->IRQ11
(XEN) HVM1: pci dev 03:0 INTA->IRQ5
(XEN) HVM1: Make vBAR = pBAR of assigned gfx
(XEN) domctl.c:836:d0 memory_map:add: gfn=d2000 mfn=d2000 nr_mfns=1000
(XEN) domctl.c:836:d0 memory_map:add: gfn=c0000 mfn=c0000 nr_mfns=10000
(XEN) domctl.c:836:d0 memory_map:add: gfn=d0000 mfn=d0000 nr_mfns=2000
(XEN) domctl.c:887:d0 ioport_map:add f_gport=d000 f_mport=d000 np=80
(XEN) HVM1: pci dev 02:0 bar 14 size 01000000: e0000008
(XEN) HVM1: pci dev 02:0 bar 10 size 00000100: 0000c001
(XEN) HVM1: pci dev 03:0 bar 10 size 00000100: 0000c101
(XEN) HVM1: pci dev 03:0 bar 14 size 00000100: e1000000
(XEN) HVM1: pci dev 01:2 bar 20 size 00000020: 0000c201
(XEN) HVM1: pci dev 01:1 bar 20 size 00000010: 0000c221
(XEN) HVM1: Multiprocessor initialisation:
(XEN) HVM1:  - CPU0 ... 36-bit phys ... fixed MTRRs ... var MTRRs [3/8] ... done.
(XEN) HVM1:  - CPU1 ... 36-bit phys ... fixed MTRRs ... var MTRRs [3/8] ... done.
(XEN) HVM1: Testing HVM environment:
(XEN) HVM1:  - REP INSB across page boundaries ... passed
(XEN) HVM1:  - GS base MSRs and SWAPGS ... passed
(XEN) HVM1: Passed 2 of 2 tests
(XEN) HVM1: Writing SMBIOS tables ...
(XEN) HVM1: Loading ROMBIOS ...
(XEN) HVM1: 11900 bytes of ROMBIOS high-memory extensions:
(XEN) HVM1:   Relocating to 0xfc000000-0xfc002e7c ... done
(XEN) HVM1: Creating MP tables ...
(XEN) HVM1: Loading VGABIOS of passthroughed gfx ...
(XEN) HVM1: Loading PCI Option ROM ...
(XEN) HVM1:  - Manufacturer: http://etherboot.org
(XEN) HVM1:  - Product name: gPXE
(XEN) HVM1: Loading ACPI ...
(XEN) HVM1:  - Lo data: 000ea020-000ea04f
(XEN) HVM1:  - Hi data: fc003000-fc01261f
(XEN) HVM1: vm86 TSS at fc012800
(XEN) HVM1: BIOS map:
(XEN) HVM1:  c0000-cf7ff: VGA BIOS
(XEN) HVM1:  cf800-dbfff: Etherboot ROM
(XEN) HVM1:  eb000-eb175: SMBIOS tables
(XEN) HVM1:  f0000-fffff: Main BIOS
(XEN) HVM1: Invoking ROMBIOS ...
(XEN) HVM1: $Revision: 1.221 $ $Date: 2008/12/07 17:32:29 $
(XEN) HVM1: *** int 15h function AX=5f14, BX=078f not yet supported!
(XEN) HVM1: Bochs BIOS - build: 06/23/99
(XEN) HVM1: $Revision: 1.221 $ $Date: 2008/12/07 17:32:29 $
(XEN) HVM1: Options: apmbios pcibios eltorito PMM
(XEN) HVM1:
(XEN) HVM1: ata0-0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63
(XEN) HVM1: ata0 master: QEMU HARDDISK ATA-7 Hard-Disk (51200 MBytes)
(XEN) HVM1: IDE time out
(XEN) HVM1: ata1 master: QEMU DVD-ROM ATAPI-4 CD-Rom/DVD-Rom
(XEN) HVM1: IDE time out
(XEN) HVM1:
(XEN) HVM1:
(XEN) HVM1:
(XEN) HVM1: Press F12 for boot menu.
(XEN) HVM1:
(XEN) HVM1: Booting from Hard Disk...
(XEN) HVM1: Booting from 0000:7c00
(XEN) HVM1: int13_harddisk: function 15, unmapped device for ELDL=81
(XEN) HVM1: *** int 15h function AX=e980, BX=0066 not yet supported!
(XEN) mce.c:694:d1 MCE: rdmsr MCG_CAP 0x806
(XEN) mce.c:714:d1 MCE: rdmsr MC0_CTL 0xffffffffffffffff
(XEN) mce.c:694:d1 MCE: rdmsr MCG_CAP 0x806
(XEN) mce.c:694:d1 MCE: rdmsr MCG_CAP 0x806
(XEN) irq.c:243: Dom1 PCI link 0 changed 5 -> 0
(XEN) irq.c:243: Dom1 PCI link 1 changed 10 -> 0
(XEN) irq.c:243: Dom1 PCI link 2 changed 11 -> 0
(XEN) irq.c:243: Dom1 PCI link 3 changed 5 -> 0
(XEN) domctl.c:846:d0 memory_map:remove: gfn=d2000 mfn=d2000 nr_mfns=1000
(XEN) domctl.c:846:d0 memory_map:remove: gfn=c0000 mfn=c0000 nr_mfns=10000
(XEN) domctl.c:846:d0 memory_map:remove: gfn=d0000 mfn=d0000 nr_mfns=2000
(XEN) domctl.c:911:d0 ioport_map:remove f_gport=d000 f_mport=d000 np=80
(XEN) domctl.c:836:d0 memory_map:add: gfn=d2000 mfn=d2000 nr_mfns=1000
(XEN) domctl.c:836:d0 memory_map:add: gfn=c0000 mfn=c0000 nr_mfns=10000
(XEN) domctl.c:836:d0 memory_map:add: gfn=d0000 mfn=d0000 nr_mfns=2000
(XEN) domctl.c:887:d0 ioport_map:add f_gport=d000 f_mport=d000 np=80

Thank you.
-- 
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) 
Technical Support Engineer 
Information Technology Department
Asiasoft Online Pte Ltd
Tampines Central 1 #04-01 Tampines Plaza 
Singapore 529541
Republic of Singapore
Company Website: http://www.asiasoft.sg/
Mobile: +65-9648-9798
MSN: teoenming@hotmail.com
Alma Maters: Singapore Polytechnic, National University of Singapore


On 09/07/2009 10:00 PM, Mr. Teo En Ming (Zhang Enming) wrote:
OK I have just reached home after work.

>Teo,

>Please can you post your

>1) lspci output from Dom0 for your VGA card

01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400 GS (rev a1) (prog-if 00 [VGA controller])

01:00.0 0300: 10de:06e4 (rev a1) (prog-if 00 [VGA controller])

>2) qemu log for DomU

Will post later when I reboot with Serial Console

>3) xm dmesg output

Will post later when I reboot with Serial Console

>4) Modifications you made to vBAR-pBAR patch

I did not make any modifications to the vbar-pbar patch. I used the 1:1 map patch as provided by Weidong Intel verbatim.

>Thanks Tim

Thank you.



--------------040307060509040604020409-- --===============1644191668== 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 --===============1644191668==--