Skip to content
Snippets Groups Projects
Commit a40161cb authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

membarrier: add --enable-membarrier


Actually enable the global memory barriers if supported by the OS.
Because only recent versions of Linux include the support, they
are disabled by default.  Note that it also has to be disabled
for QEMU to run under Wine.

Before this patch, rcutorture reports 85 ns/read for my machine,
after the patch it reports 12.5 ns/read.  On the other hand updates
go from 50 *micro*seconds to 20 *milli*seconds.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent c8d3877e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment