From: Boris Derzhavets Subject: Re: Re: [PATCH] ioemu: Cleanup the code of PCI passthrough. Date: Mon, 23 Feb 2009 06:23:45 -0800 (PST) Message-ID: <709240.76132.qm@web56102.mail.re3.yahoo.com> References: <18850.35361.438234.960479@mariner.uk.xensource.com> Reply-To: bderzhavets@yahoo.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1022281802==" Return-path: In-Reply-To: <18850.35361.438234.960479@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Simon Horman , Ian Jackson Cc: Yuji Shimada , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============1022281802== Content-Type: multipart/alternative; boundary="0-1195299196-1235399025=:76132" --0-1195299196-1235399025=:76132 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =A0I was under impression, that mentioned patch is supposed to support loading HVM DomU (?).=A0 If answer is "yes" , then my question:- When http://xenbits.xensource.com/xen-unstable.hg will get this update? Looks like "make tools" is using http://xenbits.xensource.com/git-http/qemu= -xen-unstable.git when building xen-unstable.hg/tools/ioemu-remote. If answer is "no", i am sorry for misunderstanding. =A0 Fresh Xen-Unstable Dom0 install (along with the most recent build 2.6.29-rc5) still shows during attempt to start HVM DomU:- # xm dmesg . . . . . .=20 (XEN) HVM1: HVM Loader (XEN) HVM1: Detected Xen v3.4-unstable (XEN) HVM1: CPU speed is 3006 MHz (XEN) irq.c:235: Dom1 PCI link 0 changed 0 -> 5 (XEN) HVM1: PCI-ISA link 0 routed to IRQ5 (XEN) irq.c:235: Dom1 PCI link 1 changed 0 -> 10 (XEN) HVM1: PCI-ISA link 1 routed to IRQ10 (XEN) irq.c:235: Dom1 PCI link 2 changed 0 -> 11 (XEN) HVM1: PCI-ISA link 2 routed to IRQ11 (XEN) irq.c:235: 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 03:0 INTA->IRQ5 (XEN) HVM1: pci dev 04:0 INTA->IRQ5 (XEN) HVM1: pci dev 02:0 bar 10 size 02000000: f0000008 (XEN) HVM1: pci dev 03:0 bar 14 size 01000000: f2000008 (XEN) HVM1: pci dev 02:0 bar 14 size 00001000: f3000000 (XEN) HVM1: pci dev 03:0 bar 10 size 00000100: 0000c001 (XEN) HVM1: pci dev 04:0 bar 10 size 00000100: 0000c101 (XEN) HVM1: pci dev 04:0 bar 14 size 00000100: f3001000 (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:=A0 - CPU0 ... 36-bit phys ... fixed MTRRs ... var MTRRs [2/8] .= .. done. (XEN) HVM1: Testing HVM environment: (XEN) HVM1:=A0 - REP INSB across page boundaries ... passed (XEN) HVM1: Passed 1/1 tests (XEN) HVM1: Writing SMBIOS tables ... (XEN) HVM1: Loading ROMBIOS ... (XEN) HVM1: 9788 bytes of ROMBIOS high-memory extensions: (XEN) HVM1:=A0=A0 Relocating to 0xfc000000-0xfc00263c ... done (XEN) HVM1: Creating MP tables ... (XEN) HVM1: Loading Cirrus VGABIOS ... (XEN) HVM1: Loading PCI Option ROM ... (XEN) HVM1:=A0 - Manufacturer: http://etherboot.org (XEN) HVM1:=A0 - Product name: gPXE (XEN) HVM1: Loading ACPI ... ******************************** Logfile under /var/log/xen :- ******************************** domid: 1 qemu: the number of cpus is 1 config qemu network with xen bridge for=A0 tap1.0 eth0 Watching /local/domain/0/device-model/1/logdirty/next-active Watching /local/domain/0/device-model/1/command xs_read(): vncpasswd get error. /vm/1388b5b0-3888-5c75-b701-3e82249a379e/vn= cpasswd. qemu_map_cache_init nr_buckets =3D 10000 size 3145728 shared page at pfn feffd buffered io page at pfn feffb Guest uuid =3D 1388b5b0-3888-5c75-b701-3e82249a379e Time offset set 0 populating video RAM at ff000000 mapping video RAM from ff000000 Register xen platform. Done register platform. xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read error medium change watch on `hdc' (index: 0): /dev/loop0 I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 cirrus vga map change while on lfb mode =A0 --- On Mon, 2/23/09, Ian Jackson wrote: From: Ian Jackson Subject: Re: [Xen-devel] Re: [PATCH] ioemu: Cleanup the code of PCI passthr= ough. To: "Simon Horman" Cc: "Yuji Shimada" , "xen-devel@lists.xensourc= e.com" Date: Monday, February 23, 2009, 6:36 AM Simon Horman writes ("Re: [Xen-devel] Re: [PATCH] ioemu: Cleanup the code of PCI passthrough."): > On Mon, Feb 23, 2009 at 10:40:22AM +0900, Yuji Shimada wrote: > > Signed-off-by: Yuji Shimada >=20 > Tested-by: Simon Horman Thanks, I have applied this. The problem causing it to be rejected was that hw/passthrough.[ch] and hw/pt-msi.[ch] were full of trailing whitespace, which Yuji Shimada's mailer evidently removes. I think the mailer was right and the code was wrong. So I have removed all of that trailing whitespace with a trivial perl one-liner and then committed the cleanup patch on top. I haven't tested the pass-through but the tree does build. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1195299196-1235399025=:76132 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
=0A=0A=0A=0A --0-1195299196-1235399025=:76132-- --===============1022281802== 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 --===============1022281802==--
 I was under impression, that mentioned = patch is supposed to support
loading HVM DomU (?).  If answer is "y= es" , then my question:-
When http://xenbits.xensource.com/xen-unstable.= hg will get this update?
Looks like "make tools" is using http://xenbits.xensource= .com/git-http/qemu-xen-unstable.git when building xen-unstable.h= g/tools/ioemu-remote.
If answer is "no", i am sorry for misunderstanding= .

  Fresh Xen-Unstable Dom0 install (along with the most recent= build
2.6.29-rc5) still shows during attempt to start HVM DomU:-
# xm dmesg
. . . . . .
(XEN) HVM1: HVM Loader
(XEN) HVM1: Detect= ed Xen v3.4-unstable
(XEN) HVM1: CPU speed is 3006 MHz
(XEN) irq.c:23= 5: Dom1 PCI link 0 changed 0 -> 5
(XEN) HVM1: PCI-ISA link 0 routed to IRQ5
(= XEN) irq.c:235: Dom1 PCI link 1 changed 0 -> 10
(XEN) HVM1: PCI-ISA l= ink 1 routed to IRQ10
(XEN) irq.c:235: Dom1 PCI link 2 changed 0 -> 1= 1
(XEN) HVM1: PCI-ISA link 2 routed to IRQ11
(XEN) irq.c:235: Dom1 PC= I 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 03:0 INTA->IRQ5
(XEN) HVM1: pci dev 04:= 0 INTA->IRQ5
(XEN) HVM1: pci dev 02:0 bar 10 size 02000000: f0000008<= br>(XEN) HVM1: pci dev 03:0 bar 14 size 01000000: f2000008
(XEN) HVM1: p= ci dev 02:0 bar 14 size 00001000: f3000000
(XEN) HVM1: pci dev 03:0 bar = 10 size 00000100: 0000c001
(XEN) HVM1: pci dev 04:0 bar 10 size 00000100= : 0000c101
(XEN) HVM1: pci dev 04:0 bar 14 size 00000100: f3001000
(X= EN) 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 [2/8] ... done.
(XEN) HVM1: Testing HVM environment:
(= XEN) HVM1:  - REP INSB across page boundaries ... passed
(XEN) HVM1= : Passed 1/1 tests
(XEN) HVM1: Writing SMBIOS tables ...
(XEN) HVM1: = Loading ROMBIOS ...
(XEN) HVM1: 9788 bytes of ROMBIOS high-memory extens= ions:
(XEN) HVM1:   Relocating to 0xfc000000-0xfc00263c ... do= ne
(XEN) HVM1: Creating MP tables ...
(XEN) HVM1: Loading Cirrus VGAB= IOS ...
(XEN) HVM1: Loading PCI Option ROM ...
(XEN) HVM1:  - Ma= nufacturer: http://etherboot.org
(XEN) HVM1:  - Product name: gPXE<= br>(XEN) HVM1: Loading ACPI ...


********************************=
Logfile under /var/log/xen :-
********************************
domid: 1
qemu: the number of cpus is 1
config qemu network with xen bridge for  tap1.0 eth0
Watching /local/domain/0/device-m= odel/1/logdirty/next-active
Watching /local/domain/0/device-model/1/comm= and
xs_read(): vncpasswd get error. /vm/1388b5b0-3888-5c75-b701-3e82249a= 379e/vncpasswd.
qemu_map_cache_init nr_buckets =3D 10000 size 3145728shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = =3D 1388b5b0-3888-5c75-b701-3e82249a379e
Time offset set 0
populating= video RAM at ff000000
mapping video RAM from ff000000
Register xen p= latform.
Done register platform.
xs_read(/local/domain/0/device-model= /1/xen_extended_power_mgmt): read error
medium change watch on `hdc' (in= dex: 0): /dev/loop0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, = count: 0, size: 0
cirrus vga map change while on lfb mode


&nb= sp;

--- On Mon, 2/23/09, Ian Jackson <Ian.Jackson@eu.citrix= .com> wrote:
From: Ian Jackson = <Ian.Jackson@eu.citrix.com>
Subject: Re: [Xen-devel] Re: [PATCH] i= oemu: Cleanup the code of PCI passthrough.
To: "Simon Horman" <horms@= verge.net.au>
Cc: "Yuji Shimada" <shimada-yxb@necst.nec.co.jp>,= "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
D= ate: Monday, February 23, 2009, 6:36 AM

Simon Horman writes ("R=
e: [Xen-devel] Re: [PATCH] ioemu: Cleanup the code
of PCI passthrough.")= :
> On Mon, Feb 23, 2009 at 10:40:22AM +0900, Yuji Shimada wrote:
= > > Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>>
> Tested-by: Simon Horman <horms@verge.net.au>

T= hanks, I have applied this.

The problem causing it to be rejected wa= s that hw/passthrough.[ch] and
hw/pt-msi.[ch] were full of trailing whit= espace, which Yuji Shimada's
mailer evidently removes. I think the mailer was right and the code
was wrong.

So I have removed a= ll of that trailing whitespace with a trivial perl
one-liner and then co= mmitted the cleanup patch on top. I haven't
tested the pass-through but= the tree does build.

Ian.

__________________________________= _____________
Xen-devel mailing list
Xen-devel@lists.xensource.comhttp://lists.xensource.com/xen-devel