All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	xen-devel@lists.xensource.com
Cc: Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: [PATCH v2] ignore writes to GICD_ICACTIVER ... GICD_ICACTIVERN
Date: Fri, 4 Dec 2015 12:38:02 +0000	[thread overview]
Message-ID: <5661892A.3020803@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1512041233130.11598@kaball.uk.xensource.com>

Hi Stefano:

Can you please add xen/arm in the commit title?

On 04/12/2015 12:36, Stefano Stabellini wrote:
> Injecting a fault to the guest just because it is writing to one of the
> GICD_ICACTIVER registers, which are part of the GICv2 and GICv3 specs,
> is harsh. Additionally it causes recent linux kernels to fail to boot on
> Xen.
>
> Ignore writes to GICD_ICACTIVER ... GICD_ICACTIVERN instead, to solve
> the boot issue and for backportability. However implementing the
> registers properly might a better long term solution.
>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
>
> ---
>
> Changes in v2:
> - rebase on staging
>
> diff --git a/xen/arch/arm/vgic-v2.c b/xen/arch/arm/vgic-v2.c
> index 2c73133..3079901 100644
> --- a/xen/arch/arm/vgic-v2.c
> +++ b/xen/arch/arm/vgic-v2.c
> @@ -494,11 +494,10 @@ static int vgic_v2_distr_mmio_write(struct vcpu *v, mmio_info_t *info,
>           return 0;
>
>       case VRANGE32(GICD_ICACTIVER, GICD_ICACTIVERN):
> -        if ( dabt.size != DABT_WORD ) goto bad_width;
> -        printk(XENLOG_G_ERR
> +        gdprintk(XENLOG_DEBUG,

Why did you  move to gdprintk? The vCPU is already printed using %pv in 
the string.

>                  "%pv: vGICD: unhandled word write %#"PRIregister" to ICACTIVER%d\n",
>                  v, r, gicd_reg - GICD_ICACTIVER);
> -        return 0;
> +        goto write_ignore_32;
>
>       case VRANGE32(GICD_IPRIORITYR, GICD_IPRIORITYRN):
>       {
> diff --git a/xen/arch/arm/vgic-v3.c b/xen/arch/arm/vgic-v3.c
> index 985e866..6011e9e 100644
> --- a/xen/arch/arm/vgic-v3.c
> +++ b/xen/arch/arm/vgic-v3.c
> @@ -621,11 +621,10 @@ static int __vgic_v3_distr_common_mmio_write(const char *name, struct vcpu *v,
>           return 0;
>
>       case VRANGE32(GICD_ICACTIVER, GICD_ICACTIVERN):
> -        if ( dabt.size != DABT_WORD ) goto bad_width;
> -        printk(XENLOG_G_ERR
> +        gdprintk(XENLOG_DEBUG,

Ditto

>                  "%pv: %s: unhandled word write %#"PRIregister" to ICACTIVER%d\n",
>                  v, name, r, reg - GICD_ICACTIVER);
> -        return 0;
> +        goto write_ignore_32;
>
>       case VRANGE32(GICD_IPRIORITYR, GICD_IPRIORITYRN):
>       {
>

Regards,

-- 
Julien Grall

  reply	other threads:[~2015-12-04 12:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-04 12:36 [PATCH v2] ignore writes to GICD_ICACTIVER ... GICD_ICACTIVERN Stefano Stabellini
2015-12-04 12:38 ` Julien Grall [this message]
2015-12-11 14:36   ` Stefano Stabellini
2015-12-11 14:43     ` Julien Grall

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=5661892A.3020803@citrix.com \
    --to=julien.grall@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --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 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.