All of lore.kernel.org
 help / color / mirror / Atom feed
* Adopting the Linux Kernel Memory Model in Xen?
@ 2020-09-11 16:33 Julien Grall
  2020-09-11 19:53 ` Andrew Cooper
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Julien Grall @ 2020-09-11 16:33 UTC (permalink / raw)
  To: xen-devel, committers; +Cc: Roger Pau Monné, Bertrand Marquis

Hi all,

At the moment, Xen doesn't have a formal memory model. Instead, we are 
relying on intuitions. This can lead to heated discussion on what can a 
processor/compiler do or not.

We also have some helpers that nearly do the same (such as 
{read,write}_atomic() vs ACCESS_ONCE()) with no clear understanding 
where to use which.

In the past few years, Linux community spent a lot of time to write down 
their memory model and make the compiler communities aware of it (see 
[1], [2]).

There are a few reasons I can see for adopting LKMM:
    - Xen borrows a fair amount of code from Linux;
    - There are efforts to standardize it;
    - This will allow us to streamline the discussion.

Any thoughts?

Cheers,

[1] https://www.kernel.org/doc/Documentation/memory-barriers.txt
[2] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p0124r7.html


-- 
Julien Grall


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

end of thread, other threads:[~2020-09-14  9:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-11 16:33 Adopting the Linux Kernel Memory Model in Xen? Julien Grall
2020-09-11 19:53 ` Andrew Cooper
2020-09-14  9:12   ` Julien Grall
2020-09-14  6:59 ` Paul Durrant
2020-09-14  9:03 ` Jan Beulich
2020-09-14  9:41   ` Julien Grall

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.