From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Cc: tim@xen.org, stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH FOR-4.5] xen: arm: avoid "PV" terminology
Date: Tue, 04 Feb 2014 13:02:04 +0000 [thread overview]
Message-ID: <52F0E4CC.3020302@linaro.org> (raw)
In-Reply-To: <1391514096-31805-1-git-send-email-ian.campbell@citrix.com>
On 04/02/14 11:41, Ian Campbell wrote:
> Xen on ARM guests are neither PV nor HVM, they are just "guests". Avoid the
> incorrect use of the term pv in the guest type macros.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
I think there is some coding style error (was already on the current
code), see below. Except that:
Acked-by: Julien Grall <julien.grall@linaro.org>
> ---
> Common code still has is_pv_domain, is_hvm_domain and even is_pvh_domain.
I have a patch to get a rid of is_pv_domain in common/grant-table.c. I
will send it with my IOMMU patch series for ARM.
> diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c
> index 635a9a4..1e4f298 100644
> --- a/xen/arch/arm/domain.c
> +++ b/xen/arch/arm/domain.c
> @@ -263,7 +263,7 @@ static void continue_new_vcpu(struct vcpu *prev)
>
> if ( is_idle_vcpu(current) )
> reset_stack_and_jump(idle_loop);
> - else if is_pv32_domain(current->domain)
> + else if is_32bit_domain(current->domain)
else if ( ... ) ?
> diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c
> index ea77cb8..21efd55 100644
> --- a/xen/arch/arm/traps.c
> +++ b/xen/arch/arm/traps.c
> @@ -1721,12 +1721,12 @@ asmlinkage void do_trap_hypervisor(struct cpu_user_regs *regs)
> advance_pc(regs, hsr);
> break;
> case HSR_EC_CP15_32:
> - if ( ! is_pv32_domain(current->domain) )
> + if ( ! is_32bit_domain(current->domain) )
( !is_... ) ?
> goto bad_trap;
> do_cp15_32(regs, hsr);
> break;
> case HSR_EC_CP15_64:
> - if ( ! is_pv32_domain(current->domain) )
> + if ( ! is_32bit_domain(current->domain) )
Same here.
--
Julien Grall
next prev parent reply other threads:[~2014-02-04 13:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 11:41 [PATCH FOR-4.5] xen: arm: avoid "PV" terminology Ian Campbell
2014-02-04 13:02 ` Julien Grall [this message]
2014-02-04 14:00 ` Ian Campbell
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=52F0E4CC.3020302@linaro.org \
--to=julien.grall@linaro.org \
--cc=ian.campbell@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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.