From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel De Graaf Subject: Re: [PATCH 5/7] xen: rename various functions referencing dom0 Date: Wed, 19 Mar 2014 11:25:46 -0400 Message-ID: <5329B6FA.2070107@tycho.nsa.gov> References: <1395178490-9996-1-git-send-email-dgdegra@tycho.nsa.gov> <1395178490-9996-6-git-send-email-dgdegra@tycho.nsa.gov> <53296DD50200007800125922@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53296DD50200007800125922@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Ian Campbell , Tim Deegan , xen-devel@lists.xen.org, Stefano Stabellini , Suravee Suthikulpanit , Xiantao Zhang List-Id: xen-devel@lists.xenproject.org On 03/19/2014 05:13 AM, Jan Beulich wrote: >>>> On 18.03.14 at 22:34, Daniel De Graaf wrote: >> --- a/xen/arch/arm/domain_build.c >> +++ b/xen/arch/arm/domain_build.c >> @@ -50,10 +50,8 @@ custom_param("dom0_mem", parse_dom0_mem); >> */ >> #define DOM0_FDT_EXTRA_SIZE (128 + sizeof(struct fdt_reserve_entry)) >> >> -struct vcpu *__init alloc_dom0_vcpu0(void) >> +struct vcpu *__init alloc_dom0_vcpu0(struct domain *dom0) >> { >> - struct domain *dom0 = hardware_domain; >> - >> if ( opt_dom0_max_vcpus == 0 ) >> opt_dom0_max_vcpus = num_online_cpus(); >> if ( opt_dom0_max_vcpus > MAX_VIRT_CPUS ) >> --- a/xen/arch/arm/setup.c >> +++ b/xen/arch/arm/setup.c >> @@ -759,7 +759,7 @@ void __init start_xen(unsigned long boot_phys_offset, >> >> /* Create initial domain 0. */ >> hardware_domain = dom0 = domain_create(0, 0, 0); >> - if ( IS_ERR(dom0) || (alloc_dom0_vcpu0() == NULL) ) >> + if ( IS_ERR(dom0) || (alloc_dom0_vcpu0(dom0) == NULL) ) > > Any reason why a change like this can't be done right away in the > earlier patch introducing the local "dom0" variables, reducing the > overall churn? > > Jan I was trying to restrict the earlier patch to just variable renames, with this patch covering function names (and prototypes). I could move this change back, or just merge the patches if "rename dom0->hwdom" does not end up being an overly large patch. -- Daniel De Graaf National Security Agency