History | View | Annotate | Download (1.8 kB)
virtio: order index/descriptor reads
virtio has the equivalent of:
if (vq->last_avail_index != vring_avail_idx(vq)) { read descriptor head at vq->last_avail_index; }
In theory, processor can reorder descriptor headread to happen speculatively before the index read....
virtio: add missing mb() on notification
During normal operation, virtio first writes a used indexand then checks whether it should interrupt the guestby reading guest avail index/flag values.
Guest does the reverse: writes the index/flag,then checks the used ring....
qemu-barrier: Fix build failure on PowerPC Mac OS X
qemu-barrier.h tests if macro powerpc is defined, however, thepreprocessor on PowerPC Mac OS X defines only POWERPC, notpowerpc. Resolve by testing instead for qemu-provided _ARCH_PPC.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>...
Barriers in qemu-barrier.h should not be x86 specific
qemu-barrier.h contains a few macros implementing memory barrierprimitives used in several places throughout qemu. However, apartfrom the compiler-only barrier, the defined wmb() is correct only for...
Introduce proper compiler barrier
Define barrier() as optimization barrier and replace (potentiallyunreliable) asm("") fences.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Acked-by: Paolo Bonzini <pbonzini@redhat.com>Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>...
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>