diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2015-03-02 11:38:55 -0700 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-03-02 11:38:55 -0700 |
commit | 6ee47c90081b3ab5980eeef1a8b12b54bac98bb5 (patch) | |
tree | 1979d6b81a50f441a02e072ccfcf2c450e23bfe5 /include | |
parent | 51b833f4405426b63b66380117bbe1f4c8976021 (diff) | |
download | qemu-6ee47c90081b3ab5980eeef1a8b12b54bac98bb5.zip |
vfio: allow to disable MMAP per device with -x-mmap=off option
Disabling MMAP support uses the slower read/write accesses but allows to
trace all MMIO accesses, which is not good for performance, but very
useful for reverse engineering PCI drivers. This option allows to
disable MMAP per device without a compile-time change.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/vfio/vfio-common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index 3d3892cdf4..0d1fb805bb 100644 --- a/include/hw/vfio/vfio-common.h +++ b/include/hw/vfio/vfio-common.h @@ -36,7 +36,6 @@ #endif /* Extra debugging, trap acceleration paths for more logging */ -#define VFIO_ALLOW_MMAP 1 #define VFIO_ALLOW_KVM_INTX 1 #define VFIO_ALLOW_KVM_MSI 1 #define VFIO_ALLOW_KVM_MSIX 1 @@ -102,6 +101,7 @@ typedef struct VFIODevice { int type; bool reset_works; bool needs_reset; + bool allow_mmap; VFIODeviceOps *ops; unsigned int num_irqs; unsigned int num_regions; |