mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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:
parent
6312b92853
commit
85199474d0
2 changed files with 9 additions and 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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue