All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: "Luis R. Rodriguez" <mcgrof@do-not-panic.com>,
	David Vrabel <david.vrabel@citrix.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-devel@lists.xenproject.org,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>
Subject: Re: [RFC v1 0/8] xen: kconfig changes
Date: Tue, 17 Feb 2015 08:39:44 +0100	[thread overview]
Message-ID: <54E2F040.5020807@suse.com> (raw)
In-Reply-To: <CAB=NE6XJfYVbso20sBPN08dhQDneg3R9xtUWxFRC5gmTtRRoAQ@mail.gmail.com>

On 02/17/2015 01:20 AM, Luis R. Rodriguez wrote:
> On Thu, Feb 12, 2015 at 3:07 AM, David Vrabel <david.vrabel@citrix.com> wrote:
>> On 12/02/15 06:03, Luis R. Rodriguez wrote:
>>> From: "Luis R. Rodriguez" <mcgrof@suse.com>
>>>
>>> Here's the first shot at the Kconfig changes for Xen as discussed
>>> on the mailing list a little while ago [0]. Let me know if you spot
>>> any issues or if you'd like things split differently. I tried to
>>> make things as atomic as possible, but not being too rediculous
>>> on the atomicity of the changes, for instance the HVC changes
>>> were reasonable to just fold into the other change it touched.
>>>
>>> Haven't gone to war with testing the Kconfig changes yet given this
>>> is just the first RFC. If things look good please look for major
>>> issues and let me know.#
>>
>> Can you spin a v2 and make a git branch available, please?  I would like
>> people to be able to easily try out the changes rather than looking at
>> the diffs.
>>
>> If I haven't comment on a specific patch it's because I thought it
>> looked ok.
>
> Sure thing, before that I should address now what I have found as
> issues with the Kconfig changes and what we need. What I see so far:
>
> 1) due to a recursive dependency it seems we should consider having
> XEN_DOM0 select SWIOTLB_XEN instead of depend on it? That fixes it:
>
> diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig
> index d930574..c25e12b 100644
> --- a/arch/x86/xen/Kconfig
> +++ b/arch/x86/xen/Kconfig
> @@ -14,7 +14,8 @@ config XEN
>   config XEN_DOM0
>          def_bool y
>          select XEN_BACKEND
> -       depends on XEN && PCI_XEN && SWIOTLB_XEN
> +       select SWIOTLB_XEN
> +       depends on XEN && PCI_XEN
>          depends on X86_LOCAL_APIC && X86_IO_APIC && ACPI && PCI
>          depends on XEN_PV || XEN_PVH

I'm fine with this.

> 2) due to a recursive-dependency it doesn't seem we should have
> XEN_FRONTEND select on CONFIG_XEN -- with that in place we end up
> with:
>
> arch/x86/xen/Kconfig:5:error: recursive dependency detected!
> arch/x86/xen/Kconfig:5: symbol XEN is selected by XEN_FRONTEND
> drivers/xen/Kconfig:82: symbol XEN_FRONTEND depends on XEN
>
> If we remove the select XEN from XEN_FRONTEND that fixes it. Not sure
> what is ideal here though.
>
> XEN_FRONTEND does not depend on XEN but the select seems to imply it.
>
> 3) The simple memory setup build issue:
>
> As it is per our agreed upon changes we can in theory enable a
> XEN_PVHVM system without XEN_PV or XEN_PVH. If this is indeed
> desirable this poses an issue at build time at
> arch/x86/xen/enlighten.c on xen_start_kernel() here:
>
>          if (xen_feature(XENFEAT_auto_translated_physmap))
>                  x86_init.resources.memory_setup = xen_auto_xlated_memory_setup;
>          else
>                  x86_init.resources.memory_setup = xen_memory_setup;

If we have neither XEN_PV nor XEN_PVH set, why do we have to build
enlighten.c? It will never be used. Same should apply to several other
files in arch/x86/xen.

Juergen

  parent reply	other threads:[~2015-02-17  7:39 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
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 [this message]
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=54E2F040.5020807@suse.com \
    --to=jgross@suse.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=david.vrabel@citrix.com \
    --cc=konrad.wilk@oracle.com \
    --cc=mcgrof@do-not-panic.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.