diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-02-22 13:57:54 -0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-02-22 19:04:13 +0200 |
commit | 85199474d0df23b87f0b4a3e330401b59aac3ec0 (patch) | |
tree | 1420d449ca27b80b96c30437c5d69208325f0c20 /kvm-all.c | |
parent | 6312b92853a7cd483533de0348dcd26edef74824 (diff) | |
download | qemu-85199474d0df23b87f0b4a3e330401b59aac3ec0.zip qemu-85199474d0df23b87f0b4a3e330401b59aac3ec0.tar.gz qemu-85199474d0df23b87f0b4a3e330401b59aac3ec0.tar.bz2 |
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>
Diffstat (limited to 'kvm-all.c')
-rw-r--r-- | kvm-all.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -21,6 +21,7 @@ #include <linux/kvm.h> #include "qemu-common.h" +#include "qemu-barrier.h" #include "sysemu.h" #include "hw/hw.h" #include "gdbstub.h" @@ -730,7 +731,7 @@ void kvm_flush_coalesced_mmio_buffer(void) ent = &ring->coalesced_mmio[ring->first]; cpu_physical_memory_write(ent->phys_addr, ent->data, ent->len); - /* FIXME smp_wmb() */ + smp_wmb(); ring->first = (ring->first + 1) % KVM_COALESCED_MMIO_MAX; } } |