public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Alexander Graf <agraf@suse.de>
Cc: "“tiejun.chen”" <tiejun.chen@windriver.com>,
	"kvm@vger.kernel.org mailing list" <kvm@vger.kernel.org>,
	"<kvm-ppc@vger.kernel.org>" <kvm-ppc@vger.kernel.org>
Subject: Re: [v5][PATCH] KVM: PPC: Book3E HV: call RECONCILE_IRQ_STATE to sync the software state
Date: Tue, 19 Nov 2013 12:32:48 -0600	[thread overview]
Message-ID: <1384885968.1403.369.camel@snotra.buserror.net> (raw)
In-Reply-To: <8D17C407-7761-428B-9DA6-D5CF7A4C513B@suse.de>

On Tue, 2013-11-19 at 10:51 +0100, Alexander Graf wrote:
> 
> Am 19.11.2013 um 00:49 schrieb Scott Wood <scottwood@freescale.com>:
> 
> > On Mon, 2013-11-18 at 16:09 -0500, Alexander Graf wrote:
> >> On 18.11.2013, at 03:34, “tiejun.chen” <tiejun.chen@windriver.com> wrote:
> >> 
> >>> On 10/23/2013 09:26 AM, Tiejun Chen wrote:
> >>>> We enter with interrupts disabled in hardware, but we need to
> >>>> call RECONCILE_IRQ_STATE anyway to ensure that the software state
> >>>> is kept in sync instead of calling hard_irq_disable() directly.
> >> 
> >> Why didn't this happen before? What is this patch fixing?
> > 
> > It's cleanup, not a fix.  It makes things more consistent with other
> > 64-bit kernel entry code.
> 
> Could we please note this in the comit message so that whoever stumbles over the patch later knows that this is effectively a no-op (and just prepones the lazy sync)?
> 
> Also, I'm still wary of lazy breakage in the pr code path, but I guess since it's completely untested today already it's ok to ignore.

PR doesn't support 64-bit at all (e.g. it's all stw/lwz rather than some
word-size abstraction).  In the unlikely event that lazy EE is ever
extended to 32-bit, then fixing up booke_interrupts.S would be just one
part of the task of updating all the 32-bit asm (e.g. you'll find
RECONCILE_IRQ_STATE in entry_64.S but not entry_32.S).

-Scott

  reply	other threads:[~2013-11-19 18:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23  1:26 [v5][PATCH] KVM: PPC: Book3E HV: call RECONCILE_IRQ_STATE to sync the software state Tiejun Chen
2013-11-18  8:34 ` "“tiejun.chen”"
2013-11-18 21:09   ` Alexander Graf
2013-11-18 23:49     ` Scott Wood
2013-11-19  9:51       ` Alexander Graf
2013-11-19 18:32         ` Scott Wood [this message]
2013-11-29  2:01     ` "“tiejun.chen”"
2013-12-18 22:05       ` Alexander Graf

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=1384885968.1403.369.camel@snotra.buserror.net \
    --to=scottwood@freescale.com \
    --cc=agraf@suse.de \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=tiejun.chen@windriver.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