All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>,
	xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH 0/6] prefer is_..._domain() over is_..._vcpu()
Date: Thu, 11 Jun 2015 11:33:58 +0100	[thread overview]
Message-ID: <55796416.5090708@citrix.com> (raw)
In-Reply-To: <55797BF702000078000838AF@mail.emea.novell.com>

On 11/06/15 11:15, Jan Beulich wrote:
> ... when the domain pointer is already available or such operations occur
> frequently in a function. There's no particular ordering requirement
> between the individual patches, they only all do the same thing to
> different areas of code.
>
> 1: domctl: prefer is_..._domain() over is_..._vcpu()
> 2: x86: prefer is_..._domain() over is_..._vcpu()
> 3: x86/HVM: prefer is_..._domain() over is_..._vcpu()
> 4: x86/mm: prefer is_..._domain() over is_..._vcpu()
> 5: x86/context-switch: prefer is_..._domain() over is_..._vcpu()
> 6: x86/HAP: prefer is_..._domain() over is_..._vcpu()
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

The entire series, Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>

With two further suggestions:

Patch 2:

> --- a/xen/arch/x86/traps.c
> +++ b/xen/arch/x86/traps.c
> @@ -798,7 +798,7 @@ int cpuid_hypervisor_leaves( uint32_t id
>              *ebx = 0x40000200;
>          *ecx = 0;          /* Features 1 */
>          *edx = 0;          /* Features 2 */
> -        if ( is_pv_vcpu(current) )
> +        if ( is_pv_domain(d) )
>              *ecx |= XEN_CPUID_FEAT1_MMU_PT_UPDATE_PRESERVE_AD;
>          break;

It would be clearer to s/d/currd/ in this functions.  It won't make the
patch much larger.


Patch 5:

> --- a/xen/arch/x86/domain.c
> +++ b/xen/arch/x86/domain.c
> @@ -1429,9 +1429,9 @@ static void _update_runstate_area(struct
>          v->arch.pv_vcpu.need_update_runstate_area = 1;
>  }
>  
> -static inline int need_full_gdt(struct vcpu *v)
> +static inline int need_full_gdt(const struct domain *d)

As you area already changing this, you might as well switch int for bool_t.

~Andrew

  parent reply	other threads:[~2015-06-11 10:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-11 10:15 [PATCH 0/6] prefer is_..._domain() over is_..._vcpu() Jan Beulich
2015-06-11 10:20 ` [PATCH 1/6] domctl: " Jan Beulich
2015-06-11 10:35   ` Ian Campbell
2015-06-11 10:20 ` [PATCH 2/6] x86: " Jan Beulich
2015-06-11 10:21 ` [PATCH 3/6] x86/HVM: " Jan Beulich
2015-06-11 10:21 ` [PATCH 4/6] x86/mm: " Jan Beulich
2015-06-11 10:22 ` [PATCH 5/6] x86/context‑switch: " Jan Beulich
2015-06-11 10:24 ` [PATCH 6/6] x86/HAP: " Jan Beulich
2015-06-11 10:33 ` Andrew Cooper [this message]
2015-06-11 11:32   ` [PATCH 0/6] " Jan Beulich

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=55796416.5090708@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.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.