diff options
| author | Paolo Bonzini | 2014-09-17 12:21:29 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-05-19 16:42:28 +0200 |
| commit | 77ac58ddc6be324abc3451ae78a1799efa7cc3b7 (patch) | |
| tree | 3fa85c47b2104596c0d4f377cd0b9ae507c8811b /include | |
| parent | gdbstub: remove unnecessary includes from gdbstub-xml.c (diff) | |
| download | qemu-77ac58ddc6be324abc3451ae78a1799efa7cc3b7.tar.gz qemu-77ac58ddc6be324abc3451ae78a1799efa7cc3b7.tar.xz qemu-77ac58ddc6be324abc3451ae78a1799efa7cc3b7.zip | |
dma: do not depend on kvm_enabled()
Memory barriers are needed also by Xen and, when the ioeventfd
bugs are fixed, by TCG as well.
sysemu/kvm.h is not anymore needed in sysemu/dma.h, move it to
the actual users.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/dma.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/sysemu/dma.h b/include/sysemu/dma.h index 0f7cd4d3ce..d6e96a4298 100644 --- a/include/sysemu/dma.h +++ b/include/sysemu/dma.h @@ -15,7 +15,6 @@ #include "hw/hw.h" #include "block/block.h" #include "block/accounting.h" -#include "sysemu/kvm.h" typedef struct ScatterGatherEntry ScatterGatherEntry; @@ -67,9 +66,7 @@ static inline void dma_barrier(AddressSpace *as, DMADirection dir) * use lighter barriers based on the direction of the * transfer, the DMA context, etc... */ - if (kvm_enabled()) { - smp_mb(); - } + smp_mb(); } /* Checks that the given range of addresses is valid for DMA. This is |
