From: Boris Derzhavets Subject: Re: Why CONFIG_XEN_PLATFORM_PCI should be equal "y" ? Date: Wed, 9 Nov 2011 02:02:18 -0800 (PST) Message-ID: <1320832938.6518.YahooMailClassic@web65907.mail.ac4.yahoo.com> References: <1320832452.955.119.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0002791841==" Return-path: In-Reply-To: <1320832452.955.119.camel@zakaz.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: Ian Campbell Cc: Jeremy Fitzhardinge , "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --===============0002791841== Content-Type: multipart/alternative; boundary="-963947445-1106529042-1320832938=:6518" ---963947445-1106529042-1320832938=:6518 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks a lot for quick response. Boris. --- On Wed, 11/9/11, Ian Campbell wrote: From: Ian Campbell Subject: Re: [Xen-devel] Why CONFIG_XEN_PLATFORM_PCI should be equal "y" ? To: "Boris Derzhavets" Cc: "Stefano Stabellini" , "Jeremy Fitzha= rdinge" , "xen-devel@lists.xensource.com" Date: Wednesday, November 9, 2011, 4:54 AM On Wed, 2011-11-09 at 09:43 +0000, Boris Derzhavets wrote: > I've recently found the link :- >=20 >=20 > http://xen.1045712.n5.nabble.com/PATCH-xen-remove-XEN-PLATFORM-PCI-config= -option-td4833154.html >=20 > In Ubuntu 3.1 kernel configuration :- >=20 > Symbol: XEN_PLATFORM_PCI > [=3Dm]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C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0 =C2=A0 =C2=A0=20 >=C2=A0=C2=A0=C2=A0=E2=94=82 > Location:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=20 >=C2=A0=C2=A0=C2=A0=E2=94=82=C2=A0 =C2=A0=C2=A0=C2=A0-> Device > Drivers=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0=C2=A0=C2=A0 >=C2=A0=C2=A0=C2=A0=E2=94=82=C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0-> Xen driver s= upport >=20 > I believe due to dependencies it should be [y]. A symbol A depending on a symbol B only means that B must be enabled but says nothing about whether A must be enabled. If B is y this does not imply that A must be y also. >=20 > On the other hand including xen-platform-pci.ko into initrd.img for > Oneiric HVM will also > enable PV-on-HVM >=20 This requires every distro to modify its initrd tools to understand when this module is necessary (since it cannot be inferred from the explicit dependencies), this has been a source of many bugreports. Since the code is tiny (a few kilobytes) it was decided that it was better to build this in. This was done in this commit, which is probably in 3.2 but not 3.1? commit 5fbdc10395cd500d6ff844825a918c4e6f38de37 Author: Stefano Stabellini Date:=C2=A0=C2=A0=C2=A0Thu Sep 29 12:05:58 2011 +0100 =C2=A0 =C2=A0 xen: remove XEN_PLATFORM_PCI config option =C2=A0 =C2=A0=20 =C2=A0 =C2=A0 Xen PVHVM needs xen-platform-pci, on the other hand xen-platf= orm-pci is =C2=A0 =C2=A0 useless in any other cases. =C2=A0 =C2=A0 Therefore remove the XEN_PLATFORM_PCI config option and compi= le =C2=A0 =C2=A0 xen-platform-pci built-in if XEN_PVHVM is selected. =C2=A0 =C2=A0=20 =C2=A0 =C2=A0 Changes to v1: =C2=A0 =C2=A0=20 =C2=A0 =C2=A0 - remove xen-platform-pci.o and just use platform-pci.o since= it is not =C2=A0 =C2=A0 externally visible anymore. =C2=A0 =C2=A0=20 =C2=A0 =C2=A0 Signed-off-by: Stefano Stabellini =C2=A0 =C2=A0 Signed-off-by: Konrad Rzeszutek Wilk Ian. ---963947445-1106529042-1320832938=:6518 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Thanks a lot for quick response.

Boris= .

--- On Wed, 11/9/11, Ian Campbell <Ian.Campbell@citrix.co= m> wrote:

From: Ian Campbell <= ;Ian.Campbell@citrix.com>
Subject: Re: [Xen-devel] Why CONFIG_XEN_PLA= TFORM_PCI should be equal "y" ?
To: "Boris Derzhavets" <bderzhavets@y= ahoo.com>
Cc: "Stefano Stabellini" <Stefano.Stabellini@eu.citrix.c= om>, "Jeremy Fitzhardinge" <jeremy@goop.org>, "xen-devel@lists.xen= source.com" <xen-devel@lists.xensource.com>
Date: Wednesday, Novem= ber 9, 2011, 4:54 AM

On Wed, 2011-11-09 at = 09:43 +0000, Boris Derzhavets wrote:
> I've recently found the link := -
>
>
> http://xen.1045712.n5.nabb= le.com/PATCH-xen-remove-XEN-PLATFORM-PCI-config-option-td4833154.html>
> In Ubuntu 3.1 kernel configuration :-
>
> Symb= ol: XEN_PLATFORM_PCI
> [=3Dm]           = ;                     &nb= sp;                     &= nbsp;      
>   =E2=94=82 Type  :=
> tristate                &n= bsp;                     =                      = ;              
>  =  =E2=94=82 Prompt: xen platform pci device
> driver   =                       &nbs= p;                     &n= bsp;    
>   =E2=94=82   = ;Defined at
> drivers/xen/Kconfig:140        &nbs= p;                     &n= bsp;                     =
>   =E2=94=82   Depends on: XEN [=3Dy]= && XEN_PVHVM [=3Dy] && PCI
> [=3Dy]    &nb= sp;                     &= nbsp;        
>   =E2=94=82
&g= t; Location:                  =                      = ;                     &nb= sp;                
>   =E2=94= =82     -> Device
> Drivers     = ;                     &nb= sp;                     &= nbsp;                  >   =E2=94=82       -> Xen = driver support
>
> I believe due to dependencies it should be = [y].

A symbol A depending on a symbol B only means that B must be en= abled but
says nothing about whether A must be enabled. If B is y this d= oes not
imply that A must be y also.

>
> On the other h= and including xen-platform-pci.ko into initrd.img for
> Oneiric HVM w= ill also
> enable PV-on-HVM
>
This requires every distro to= modify its initrd tools to understand when
this module is necessary (si= nce it cannot be inferred from the explicit
dependencies), this has been a = source of many bugreports. Since the code
is tiny (a few kilobytes) it w= as decided that it was better to build
this in. This was done in this co= mmit, which is probably in 3.2 but not
3.1?

commit 5fbdc10395cd50= 0d6ff844825a918c4e6f38de37
Author: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Date:&= nbsp;  Thu Sep 29 12:05:58 2011 +0100

    xen: r= emove XEN_PLATFORM_PCI config option
   
    Xen= PVHVM needs xen-platform-pci, on the other hand xen-platform-pci is
&nb= sp;   useless in any other cases.
    Therefore remove th= e XEN_PLATFORM_PCI config option and compile
    xen-platform-= pci built-in if XEN_PVHVM is selected.
   
    Changes to v1:
   
    - remove xen-platform-pc= i.o and just use platform-pci.o since it is not
    externally= visible anymore.
   
    Signed-off-by: Stefano= Stabellini <stefano.stabellini@e= u.citrix.com>
    Signed-off-by: Konrad Rzeszutek Wilk = <konrad.wilk@oracle.com>

Ian.

---963947445-1106529042-1320832938=:6518-- --===============0002791841== 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 --===============0002791841==--