summaryrefslogtreecommitdiffstats
path: root/tests/test-shift128.c
diff options
context:
space:
mode:
authorJason Wang2020-03-02 05:24:54 +0100
committerMichael S. Tsirkin2020-03-08 14:27:09 +0100
commitf7ef7e6e3ba6e994e070cc609eb154339d1c4a11 (patch)
tree1b1cea19b8045cddac346783280d731c8735f67e /tests/test-shift128.c
parentpcie_root_port: Add hotplug disabling option (diff)
downloadqemu-f7ef7e6e3ba6e994e070cc609eb154339d1c4a11.tar.gz
qemu-f7ef7e6e3ba6e994e070cc609eb154339d1c4a11.tar.xz
qemu-f7ef7e6e3ba6e994e070cc609eb154339d1c4a11.zip
vhost: correctly turn on VIRTIO_F_IOMMU_PLATFORM
We turn on device IOTLB via VIRTIO_F_IOMMU_PLATFORM unconditionally on platform without IOMMU support. This can lead unnecessary IOTLB transactions which will damage the performance. Fixing this by check whether the device is backed by IOMMU and disable device IOTLB. Reported-by: Halil Pasic <pasic@linux.ibm.com> Tested-by: Halil Pasic <pasic@linux.ibm.com> Reviewed-by: Halil Pasic <pasic@linux.ibm.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Message-Id: <20200302042454.24814-1-jasowang@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/test-shift128.c')
0 files changed, 0 insertions, 0 deletions