From: Ian Campbell <Ian.Campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"konrad.wilk@oracle.com" <konrad.wilk@oracle.com>,
Julien Grall <julien.grall@citrix.com>
Subject: Re: [PATCH 2/3] xen/arm: do not handle VCPUOP_register_vcpu_info failures
Date: Wed, 8 May 2013 13:17:01 +0100 [thread overview]
Message-ID: <1368015421.26321.263.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <1368015080-5182-2-git-send-email-stefano.stabellini@eu.citrix.com>
On Wed, 2013-05-08 at 13:11 +0100, Stefano Stabellini wrote:
> We expect VCPUOP_register_vcpu_info to succeed, do not try to handle
> failures.
>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> ---
> arch/arm/xen/enlighten.c | 11 ++++-------
> 1 files changed, 4 insertions(+), 7 deletions(-)
>
> diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c
> index 83d13b0..519acf9 100644
> --- a/arch/arm/xen/enlighten.c
> +++ b/arch/arm/xen/enlighten.c
> @@ -165,13 +165,10 @@ static int __init xen_secondary_init(unsigned int cpu)
> info.offset = offset_in_page(vcpup);
>
> err = HYPERVISOR_vcpu_op(VCPUOP_register_vcpu_info, cpu, &info);
> - if (err) {
> - pr_debug("register_vcpu_info failed: err=%d\n", err);
> - } else {
> - /* This cpu is using the registered vcpu info, even if
> - later ones fail to. */
> - per_cpu(xen_vcpu, cpu) = vcpup;
> - }
> + if (err)
> + BUG();
AKA BUG_ON(err);
Acked-by: Ian Campbell <ian.campbell@citrix.com>
> + per_cpu(xen_vcpu, cpu) = vcpup;
> +
> return 0;
> }
>
next prev parent reply other threads:[~2013-05-08 12:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-08 12:10 [PATCH 0/3] Xen ARM fixes for 3.10-RC1 Stefano Stabellini
2013-05-08 12:11 ` [PATCH 1/3] xen/arm: initialize pm functions later Stefano Stabellini
2013-05-08 12:11 ` [PATCH 2/3] xen/arm: do not handle VCPUOP_register_vcpu_info failures Stefano Stabellini
2013-05-08 12:17 ` Ian Campbell [this message]
2013-05-08 12:11 ` [PATCH 3/3] xen: rename xen_secondary_init and run it on every online cpu Stefano Stabellini
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=1368015421.26321.263.camel@zakaz.uk.xensource.com \
--to=ian.campbell@citrix.com \
--cc=julien.grall@citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.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
all inboxes | Powered by JetHome®