All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Capper <steve.capper@linaro.org>
To: Stefano Stabellini <sstabellini@kernel.org>
Cc: xen-devel@lists.xenproject.org, julien.grall@arm.com,
	Jun Sun <jsun@junsun.net>
Subject: Re: [PATCH] Don't clear HCR_VM bit when updating VTTBR.
Date: Mon, 31 Oct 2016 11:25:28 +0000	[thread overview]
Message-ID: <20161031112527.GA23269@linaro.org> (raw)
In-Reply-To: <alpine.DEB.2.10.1610191258320.16441@sstabellini-ThinkPad-X260>

On Wed, Oct 19, 2016 at 12:59:45PM -0700, Stefano Stabellini wrote:
> On Mon, 10 Oct 2016, Jun Sun wrote:
> > Currently function p2m_restore_state() would clear HCR_VM bit, i.e.,
> > disabling stage2 translation, before updating VTTBR register. After
> > some research and talking to ARM support, I got confirmed that this is not
> > necessary. We are currently working on a new platform that would need this
> > to be removed.
> > 
> > The patch is tested on FVP foundation model.
> > 
> > Signed-off-by: Jun Sun <jsun@junsun.net>
> 
> Hello Jun,
> 
> thanks for the patch and sorry for the late reply. I would appreciate
> feedback from Julien, but he is current AFK.
> 
> Steve,
> can I have your Acked-by on this patch?
> 

Apologies for my very late reply on this.

I've taken a look and I think that this is okay, so please feel free to
add:
Acked-by: Steve Capper <steve.capper@linaro.org>

Cheers,
-- 
Steve

> 
> >  xen/arch/arm/p2m.c | 2 --
> >  1 file changed, 2 deletions(-)
> > 
> > diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c
> > index cc5634b..e4991df 100644
> > --- a/xen/arch/arm/p2m.c
> > +++ b/xen/arch/arm/p2m.c
> > @@ -140,8 +140,6 @@ void p2m_restore_state(struct vcpu *n)
> >          return;
> >  
> >      hcr = READ_SYSREG(HCR_EL2);
> > -    WRITE_SYSREG(hcr & ~HCR_VM, HCR_EL2);
> > -    isb();
> >  
> >      WRITE_SYSREG64(p2m->vttbr, VTTBR_EL2);
> >      isb();
> > -- 
> > 2.7.4
> > 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-10-31 11:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-10 19:27 [PATCH] Don't clear HCR_VM bit when updating VTTBR Jun Sun
2016-10-12  0:21 ` Jun Sun
2016-10-19 19:59 ` Stefano Stabellini
2016-10-31 11:25   ` Steve Capper [this message]
2016-10-31 22:18     ` Stefano Stabellini
2016-11-01 14:38       ` Julien Grall
2016-11-01 18:10         ` 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=20161031112527.GA23269@linaro.org \
    --to=steve.capper@linaro.org \
    --cc=jsun@junsun.net \
    --cc=julien.grall@arm.com \
    --cc=sstabellini@kernel.org \
    --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.