From: Daniel De Graaf <dgdegra@tycho.nsa.gov>
To: Jan Beulich <JBeulich@suse.com>
Cc: Ian Campbell <ian.campbell@citrix.com>, Tim Deegan <tim@xen.org>,
xen-devel@lists.xen.org,
Stefano Stabellini <stefano.stabellini@citrix.com>,
Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
Xiantao Zhang <xiantao.zhang@intel.com>
Subject: Re: [PATCH 5/7] xen: rename various functions referencing dom0
Date: Wed, 19 Mar 2014 11:25:46 -0400 [thread overview]
Message-ID: <5329B6FA.2070107@tycho.nsa.gov> (raw)
In-Reply-To: <53296DD50200007800125922@nat28.tlf.novell.com>
On 03/19/2014 05:13 AM, Jan Beulich wrote:
>>>> On 18.03.14 at 22:34, Daniel De Graaf <dgdegra@tycho.nsa.gov> 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
next prev parent reply other threads:[~2014-03-19 15:25 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 21:34 [PATCH v2 0/7] xen: Hardware domain support Daniel De Graaf
2014-03-18 21:34 ` [PATCH 1/7] xen: use domid check in is_hardware_domain Daniel De Graaf
2014-03-19 9:03 ` Jan Beulich
2014-03-18 21:34 ` [PATCH 2/7] xen/iommu: Move dom0 setup code to __hwdom_init Daniel De Graaf
2014-03-19 9:02 ` Jan Beulich
2014-03-19 14:06 ` Daniel De Graaf
2014-03-19 14:14 ` Jan Beulich
2014-03-18 21:34 ` [PATCH 3/7] xen: prevent 0 from being used as a dynamic domid Daniel De Graaf
2014-03-18 21:34 ` [PATCH 4/7] xen: rename dom0 to hardware_domain Daniel De Graaf
2014-03-19 9:09 ` Jan Beulich
2014-03-18 21:34 ` [PATCH 5/7] xen: rename various functions referencing dom0 Daniel De Graaf
2014-03-19 9:13 ` Jan Beulich
2014-03-19 15:25 ` Daniel De Graaf [this message]
2014-03-19 15:32 ` Jan Beulich
2014-03-18 21:34 ` [PATCH 6/7] xen: Allow hardare domain != dom0 Daniel De Graaf
2014-03-19 9:15 ` Jan Beulich
2014-03-18 21:34 ` [PATCH 7/7] tools/libxl: Allow dom0 to be destroyed Daniel De Graaf
2014-03-19 11:02 ` Ian Campbell
2014-03-19 15:12 ` Daniel De Graaf
-- strict thread matches above, loose matches on Subject: below --
2014-03-27 11:52 [PATCH v3 0/7] xen: Hardware domain support Daniel De Graaf
2014-03-27 11:52 ` [PATCH 5/7] xen: rename various functions referencing dom0 Daniel De Graaf
2014-03-27 15:34 ` Ian Campbell
2014-03-27 15:47 ` Daniel De Graaf
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=5329B6FA.2070107@tycho.nsa.gov \
--to=dgdegra@tycho.nsa.gov \
--cc=JBeulich@suse.com \
--cc=ian.campbell@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
--cc=xiantao.zhang@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).