]> git.proxmox.com Git - mirror_qemu.git/commit
vfio: allow to disable MMAP per device with -x-mmap=off option
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 2 Mar 2015 18:38:55 +0000 (11:38 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Mar 2015 18:38:55 +0000 (11:38 -0700)
commit6ee47c90081b3ab5980eeef1a8b12b54bac98bb5
tree1979d6b81a50f441a02e072ccfcf2c450e23bfe5
parent51b833f4405426b63b66380117bbe1f4c8976021
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>
hw/vfio/common.c
hw/vfio/pci.c
include/hw/vfio/vfio-common.h