diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-02-16 10:05:23 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-03-12 16:12:47 +0100 |
commit | a40161cbe9ccbcbab798c3e4d257c4bba99d153a (patch) | |
tree | fe6cc9bb0a5a3253a59d0187a5266573a2b81e16 /util/Makefile.objs | |
parent | c8d3877e48c4f57381d72eaf8d016bff12ce2d7c (diff) | |
download | qemu-a40161cbe9ccbcbab798c3e4d257c4bba99d153a.zip qemu-a40161cbe9ccbcbab798c3e4d257c4bba99d153a.tar.gz qemu-a40161cbe9ccbcbab798c3e4d257c4bba99d153a.tar.bz2 |
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: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util/Makefile.objs')
-rw-r--r-- | util/Makefile.objs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/Makefile.objs b/util/Makefile.objs index ae90b99..728c354 100644 --- a/util/Makefile.objs +++ b/util/Makefile.objs @@ -33,6 +33,7 @@ util-obj-y += throttle.o util-obj-y += getauxval.o util-obj-y += readline.o util-obj-y += rcu.o +util-obj-$(CONFIG_MEMBARRIER) += sys_membarrier.o util-obj-y += qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o util-obj-y += qemu-coroutine-sleep.o util-obj-y += coroutine-$(CONFIG_COROUTINE_BACKEND).o |