mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Richard J Moore <richardj_moore@uk.ibm.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Michael Grundy <vamsi_krishna@in.ibm.com>,
	Mikael Pettersson <mikpe@csd.uu.se>,
	suparna <bsuparna@in.ibm.com>,
	vamsi@linux.ibm.com
Subject: Re: [rfc] [patch] kernel hooks
Date: 03 Oct 2002 15:00:52 +0100	[thread overview]
Message-ID: <1033653652.28022.20.camel@irongate.swansea.linux.org.uk> (raw)
In-Reply-To: <OFAC358F0A.6BBBEF7D-ON80256C47.004A301E@portsmouth.uk.ibm.com>

On Thu, 2002-10-03 at 14:32, Richard J Moore wrote:
> 
> > You must also ensure that the code you are modifying isnt on an IRQ path
> > (if it is you must do spin locks and then be very careful about cross
> > cpu tlb deadlocks). Finally you have no choice but to ensure you never
> > use it on the NMI path
> 
> Why do we need a spinlock? We change one byte, we are not concered about
> when exactly that takes effect, only that there are always valid
> instructions in the pipeline.

Because you are programming for real silicon not for the imaginary
perfect processor. Read the x86 errata


  reply	other threads:[~2002-10-03 13:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-03 13:32 Richard J Moore
2002-10-03 14:00 ` Alan Cox [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-10-04  9:23 Richard J Moore
2002-10-03 12:26 Vamsi Krishna S .
2002-10-03 12:40 ` Mikael Pettersson
2002-10-03 13:01   ` Alan Cox

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=1033653652.28022.20.camel@irongate.swansea.linux.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=bsuparna@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikpe@csd.uu.se \
    --cc=richardj_moore@uk.ibm.com \
    --cc=vamsi@linux.ibm.com \
    --cc=vamsi_krishna@in.ibm.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®