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

Re: [Xen-devel] Why CONFIG_XEN_PLATFORM_PCI should be equal "y" ?

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] Why CONFIG_XEN_PLATFORM_PCI should be equal "y" ?
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Wed, 9 Nov 2011 02:02:18 -0800 (PST)
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Wed, 09 Nov 2011 02:05:56 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1320832938; bh=1xylfeZzsCprm7cZzMGD17Ba+q56xGCQxCRoIVys3jI=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=EHeSZ1wb6LzYYp/nqO7qJU19efrEHQBEvcTnwm6AAuymEi9BpokkeqAocrnH45OdY8LQTiyF4Wki4xwXmSN/COlsRvRj+L5Bjkaev/2eFvvihfgEG2hco0VWsVX0s474xhbumSNvkpyNQzfuRJTtwt4nRKXsxvlUzlVzXjllIXE=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=2PKLH87obzysMxD1FX+AvxwLRm+SGDJxPTHU0dzjINOY+jEqlOekUhtSYQlIPgQduvjEAzhbDR2+prMw5+tZRLh3z6sbCXVr12/Yy8HDyHzRxQ0vWPMbjtbpXtKJRPKGtDZxStsGHpcqeSUZyRW+WcNRh7bY+rq3WcLgVA/mYVs=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1320832452.955.119.camel@xxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thanks a lot for quick response.

Boris.

--- On Wed, 11/9/11, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:

From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] Why CONFIG_XEN_PLATFORM_PCI should be equal "y" ?
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
Cc: "Stefano Stabellini" <Stefano.Stabellini@xxxxxxxxxxxxx>, "Jeremy Fitzhardinge" <jeremy@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
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 :-
>
>
> http://xen.1045712.n5.nabble.com/PATCH-xen-remove-XEN-PLATFORM-PCI-config-option-td4833154.html
>
> In Ubuntu 3.1 kernel configuration :-
>
> Symbol: XEN_PLATFORM_PCI
> [=m]                                                             
>   │ Type  :
> tristate                                                                         
>   │ Prompt: xen platform pci device
> driver                                                     
>   │   Defined at
> drivers/xen/Kconfig:140                                                   
>   │   Depends on: XEN [=y] && XEN_PVHVM [=y] && PCI
> [=y]                                   
>   │
> Location:                                                                             
>   │     -> Device
> Drivers                                                                   
>   │       -> 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 enabled but
says nothing about whether A must be enabled. If B is y this does not
imply that A must be y also.

>
> On the other hand including xen-platform-pci.ko into initrd.img for
> Oneiric HVM will also
> enable PV-on-HVM
>
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 <stefano.stabellini@xxxxxxxxxxxxx>
Date:   Thu Sep 29 12:05:58 2011 +0100

    xen: remove XEN_PLATFORM_PCI config option
   
    Xen PVHVM needs xen-platform-pci, on the other hand xen-platform-pci is
    useless in any other cases.
    Therefore remove the XEN_PLATFORM_PCI config option and compile
    xen-platform-pci built-in if XEN_PVHVM is selected.
   
    Changes to v1:
   
    - remove xen-platform-pci.o and just use platform-pci.o since it is not
    externally visible anymore.
   
    Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
    Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>