kvm-all.c: define smp_wmb and use it for coalesced mmio

Acked-by: "Michael S. Tsirkin" <mst@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
Marcelo Tosatti 2010-02-22 13:57:54 -03:00 committed by Avi Kivity
parent 6312b92853
commit 85199474d0
2 changed files with 9 additions and 1 deletions

7
qemu-barrier.h Normal file
View file

@ -0,0 +1,7 @@
#ifndef __QEMU_BARRIER_H
#define __QEMU_BARRIER_H 1
/* FIXME: arch dependant, x86 version */
#define smp_wmb() asm volatile("" ::: "memory")
#endif