From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v4 09/33] xen: Extend DOMCTL createdomain to support arch configuration Date: Tue, 31 Mar 2015 11:39:31 +0100 Message-ID: <1427798371.2115.51.camel@citrix.com> References: <1426793399-6283-1-git-send-email-julien.grall@linaro.org> <1426793399-6283-10-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yctnb-0004OO-JD for xen-devel@lists.xenproject.org; Tue, 31 Mar 2015 10:53:35 +0000 In-Reply-To: <1426793399-6283-10-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Wei Liu , Stefano Stabellini , George Dunlap , Ian Jackson , tim@xen.org, stefano.stabellini@citrix.com, Jan Beulich , Andrew Cooper , xen-devel@lists.xenproject.org, Daniel De Graaf , Keir Fraser List-Id: xen-devel@lists.xenproject.org On Thu, 2015-03-19 at 19:29 +0000, Julien Grall wrote: > On ARM the virtual GIC may differ between each guest (emulated GIC version, > number of SPIs...). This information is already known at the domain creation > and can never change. > > For now only the gic_version is set. In the long run, there will be more > parameters such as the number of SPIs. All will be required to be set at the > same time. > > A new arch-specific structure arch_domainconfig has been created, the x86 > one doesn't have any specific configuration, for now, a dummy structure > (C-spec compliant) has been created. > > Some external tools (qemu, xenstore) may be required to create a domain. > Rather than asking them to take care of the arch-specific domain > configuration, let the current function (xc_domain_create) chose a > default configuration and introduce a new one (xc_domain_create_config). > > This patch also drops the previously introduced DOMCTL arm_configure_domain > in Xen 4.5, as it has been made useless. > > Signed-off-by: Julien Grall > Acked-by: Jan Beulich > Acked-by: Daniel De Graaf > Acked-by: Stefano Stabellini > Cc: Ian Jackson > Cc: Wei Liu > Cc: Keir Fraser > Cc: Andrew Cooper > Cc: George Dunlap Acked-by: Ian Campbell A couple of minor nits which I'll try and remember to fix on commit if a resend of the series isn't needed for another reason. > - LOG(DEBUG, " - vGIC version: %s", gicv_to_string(config.gic_version)); > + LOG(DEBUG, " - vGIC version: %s\n", gicv_to_string(xc_config->gic_version)); Log adds the \n itself. > /* Create initial domain 0. */ > - dom0 = domain_create(0, 0, 0); > + /* The vGIC for DOM0 is exactly emulated the hardware GIC */ "emulating" Ian.