All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Help on TLB Flush
@ 2015-02-12 14:35 Mark Burton
  2015-02-12 14:45 ` Alexander Graf
  0 siblings, 1 reply; 22+ messages in thread
From: Mark Burton @ 2015-02-12 14:35 UTC (permalink / raw)
  To: Peter Maydell, qemu-devel, mttcg

[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]


TLB Flush:

We have spent a few days on this issue, and still haven’t resolved the best path.

Our solution seems to work, most of the time, but we still have some strange issues - so I want to check that what we are proposing has a chance of working.


Our plan is to allow all CPU’s to continue. Potentially one CPU will want to write to the TLBs. Subsequent to the write, it requests a TLB Flush. We are proposing to implement this by signalling all other CPU’s to exit (and requesting they flush before re-starting). In other words, this would happen asynchronously.

This means - there is a theoretical period of time when one CPU is writing to the TLBs while other CPU’s are executing.  Our belief is that this has to be handled by software anyway, and this should not be an issue from Qemu’s point of view. 
The alternative would be to force all other CPU’s to exit before writing the TLB’s - this is both expensive and very painful to organise (as we get into horrid deadlocks whichever way we turn)…

We’d appreciate some thoughts on this...

Cheers

Mark.



	 +44 (0)20 7100 3485 x 210
 +33 (0)5 33 52 01 77x 210

	+33 (0)603762104
	mark.burton
 <applewebdata://3693B246-CDAA-4901-A9EC-AD07F4E94137/www.greensocs.com>

[-- Attachment #2: Type: text/html, Size: 2982 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-02-13 13:32 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-12 14:35 [Qemu-devel] Help on TLB Flush Mark Burton
2015-02-12 14:45 ` Alexander Graf
2015-02-12 14:58   ` Peter Maydell
2015-02-12 15:38     ` Alexander Graf
2015-02-12 16:02       ` Mark Burton
2015-02-12 22:10         ` Lluís Vilanova
2015-02-13  7:16           ` Mark Burton
2015-02-13  7:24             ` Peter Maydell
2015-02-13  7:37               ` Mark Burton
2015-02-13 13:30                 ` Lluís Vilanova
2015-02-13 13:32                   ` Mark Burton
2015-02-12 22:02       ` Peter Maydell
2015-02-12 15:01   ` Peter Maydell
2015-02-12 15:08     ` Mark Burton
2015-02-12 15:19       ` Alexander Graf
2015-02-12 21:57         ` Peter Maydell
2015-02-13  9:34           ` Paolo Bonzini
2015-02-13  9:37             ` Mark Burton
2015-02-13  9:49               ` Paolo Bonzini
2015-02-12 15:31       ` Dr. David Alan Gilbert
2015-02-12 18:44         ` Mark Burton
2015-02-12 15:11   ` Mark Burton

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.