All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <mcgrof@suse.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: jgross@suse.com, xen-devel@lists.xenproject.org,
	boris.ostrovsky@oracle.com,
	David Vrabel <david.vrabel@citrix.com>,
	"Luis R. Rodriguez" <mcgrof@do-not-panic.com>
Subject: Re: [RFC v1 7/8] xen: unwrap XEN_BACKEND from XEN_DOM0
Date: Thu, 26 Feb 2015 02:08:08 +0100	[thread overview]
Message-ID: <20150226010808.GD8749@wotan.suse.de> (raw)
In-Reply-To: <alpine.DEB.2.02.1502251433320.23507@kaball.uk.xensource.com>

On Wed, Feb 25, 2015 at 02:33:40PM +0000, Stefano Stabellini wrote:
> On Wed, 25 Feb 2015, David Vrabel wrote:
> > On 25/02/15 14:17, Stefano Stabellini wrote:
> > > On Wed, 11 Feb 2015, Luis R. Rodriguez wrote:
> > >> From: "Luis R. Rodriguez" <mcgrof@suse.com>
> > >>
> > >> This unwraps XEN_BACKEND from depending on XEN_DOM0, it
> > >> instead makes it depend on the possible x86 backends and
> > >> under what scenerios its allowed under ARM. This is as per
> > >> the agreed upon Xen Kconfig changes [0].
> > >>
> > >> [0] http://comments.gmane.org/gmane.comp.emulators.xen.devel/231579
> > >>
> > >> Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
> > >> ---
> > >>  arch/x86/xen/Kconfig | 2 ++
> > >>  drivers/xen/Kconfig  | 3 ++-
> > >>  2 files changed, 4 insertions(+), 1 deletion(-)
> > >>
> > >> diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig
> > >> index 50e2fb4..9298eb3 100644
> > >> --- a/arch/x86/xen/Kconfig
> > >> +++ b/arch/x86/xen/Kconfig
> > >> @@ -16,8 +16,10 @@ config XEN
> > >>  
> > >>  config XEN_DOM0
> > >>  	def_bool y
> > >> +	select XEN_BACKEND
> > >>  	depends on XEN && PCI_XEN && SWIOTLB_XEN
> > >>  	depends on X86_LOCAL_APIC && X86_IO_APIC && ACPI && PCI
> > >> +	depends on XEN_PV || XEN_PVH
> > >>  
> > >>  config XEN_PVHVM
> > >>  	def_bool y
> > >> diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig
> > >> index 31391bc..d8bd3f6 100644
> > >> --- a/drivers/xen/Kconfig
> > >> +++ b/drivers/xen/Kconfig
> > >> @@ -77,7 +77,8 @@ config XEN_DEV_EVTCHN
> > >>  
> > >>  config XEN_BACKEND
> > >>  	bool "Backend driver support"
> > >> -	depends on XEN_DOM0
> > >> +	depends on ARM || ARM64 || (X86 && (XEN_PV || XEN_PVH || XEN_PVHVM))
> > >> +	select SWIOTLB_XEN if ARM || ARM64
> > >>  	default y
> > >>  	help
> > >>  	  Support for backend device drivers that provide I/O services
> > > 
> > > If you do this people could enable XEN_BACKEND without XEN on ARM.
> > > I think it needs to be:
> > > 
> > > depends on (XEN && (ARM || ARM64)) || (X86 && (XEN_PV || XEN_PVH || XEN_PVHVM))
> > 
> > It's this more sufficiently:
> > 
> > depends on XEN ?
> 
> Yeah :-)

We already only expose this option on the top of the Kconfig file with
'if XEN' language, folding XEN_PVHVM under XEN_FRONTEND might not suffice
to ensure everything builds fine here given CONFIG_XEN does not implicate
XEN_FRONTEND. Because of this I think the above is still required.

Let me know though, I'll send a v4 of what things look like (no code changes)
right now before moving on again.

  Luis

  reply	other threads:[~2015-02-26  1:08 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-12  6:03 [RFC v1 0/8] xen: kconfig changes Luis R. Rodriguez
2015-02-12  6:03 ` [RFC v1 1/8] xen: make dom0 specific changes depend on XEN_DOM0 Luis R. Rodriguez
2015-02-12  9:55   ` David Vrabel
2015-02-12 20:44     ` Luis R. Rodriguez
2015-02-12  6:03 ` [RFC v1 2/8] xen: x86: make XEN_MAX_DOMAIN_MEMORY depend on XEN_HAVE_PVMMU Luis R. Rodriguez
2015-02-12  9:56   ` David Vrabel
2015-02-12 20:45     ` Luis R. Rodriguez
2015-02-12  6:03 ` [RFC v1 3/8] xen: drivers: add XEN_FRONTEND and fold front end drivers under them Luis R. Rodriguez
2015-02-12 11:01   ` David Vrabel
2015-02-12 20:48     ` Luis R. Rodriguez
2015-02-12  6:03 ` [RFC v1 4/8] xen: x86: make XEN_PVH select XEN_PVHVM Luis R. Rodriguez
2015-02-25 15:44   ` Stefano Stabellini
2015-02-26  0:36     ` Luis R. Rodriguez
2015-02-12  6:03 ` [RFC v1 5/8] xen: x86: add XEN_PV Luis R. Rodriguez
2015-02-12 11:03   ` David Vrabel
2015-02-13  2:52     ` Luis R. Rodriguez
2015-02-12  6:03 ` [RFC v1 6/8] xen: x86: make XEN_PV* stuff depend on PARAVIRT and PARAVIRT_CLOCK Luis R. Rodriguez
2015-02-25 15:45   ` Stefano Stabellini
2015-02-26  0:54     ` Luis R. Rodriguez
2015-02-12  6:03 ` [RFC v1 7/8] xen: unwrap XEN_BACKEND from XEN_DOM0 Luis R. Rodriguez
2015-02-12 11:05   ` David Vrabel
2015-02-12 20:54     ` Luis R. Rodriguez
2015-02-25 14:17   ` Stefano Stabellini
2015-02-25 14:30     ` David Vrabel
2015-02-25 14:33       ` Stefano Stabellini
2015-02-26  1:08         ` Luis R. Rodriguez [this message]
2015-02-12  6:03 ` [RFC v1 8/8] xen: x86: remove CONFIG_XEN dependency PARAVIRT and PARAVIRT_CLOCK Luis R. Rodriguez
2015-02-12 11:07 ` [RFC v1 0/8] xen: kconfig changes David Vrabel
2015-02-17  0:20   ` Luis R. Rodriguez
2015-02-17  0:25     ` Luis R. Rodriguez
2015-02-17  7:26       ` Juergen Gross
2015-02-17 19:31         ` Luis R. Rodriguez
2015-02-18 18:11           ` Konrad Rzeszutek Wilk
2015-02-18 20:01             ` Luis R. Rodriguez
2015-02-18 20:20               ` Konrad Rzeszutek Wilk
2015-02-18 21:11                 ` Luis R. Rodriguez
2015-02-18 21:24                   ` Konrad Rzeszutek Wilk
2015-02-18 21:31                     ` Luis R. Rodriguez
2015-02-18 21:54                       ` Konrad Rzeszutek Wilk
2015-02-17  7:39     ` Juergen Gross
2015-02-17 20:12       ` Luis R. Rodriguez
2015-02-18  2:32         ` Luis R. Rodriguez
2015-02-18 10:03       ` David Vrabel
2015-02-18 10:12         ` Juergen Gross
2015-02-18 19:55           ` Luis R. Rodriguez
2015-02-20 13:55           ` David Vrabel
2015-02-20 16:04             ` Luis R. Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150226010808.GD8749@wotan.suse.de \
    --to=mcgrof@suse.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=david.vrabel@citrix.com \
    --cc=jgross@suse.com \
    --cc=mcgrof@do-not-panic.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.