aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio/trace-events
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2022-06-13 14:10:08 +0800
committerMichael S. Tsirkin <mst@redhat.com>2022-06-16 12:54:58 -0400
commit90519b90539b16258d1d52b908b199f44877dc18 (patch)
tree2b362751aa48cad7fcbbe1307b06162824f1f0ee /hw/virtio/trace-events
parentb595d6272e9219bf70a9baf6d37f64045907f03b (diff)
downloadqemu-90519b90539b16258d1d52b908b199f44877dc18.zip
qemu-90519b90539b16258d1d52b908b199f44877dc18.tar.gz
qemu-90519b90539b16258d1d52b908b199f44877dc18.tar.bz2
virtio-iommu: Add bypass mode support to assigned device
Currently assigned devices can not work in virtio-iommu bypass mode. Guest driver fails to probe the device due to DMA failure. And the reason is because of lacking GPA -> HPA mappings when VM is created. Add a root container memory region to hold both bypass memory region and iommu memory region, so the switch between them is supported just like the implementation in virtual VT-d. Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Message-Id: <20220613061010.2674054-2-zhenzhong.duan@intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/trace-events')
-rw-r--r--hw/virtio/trace-events1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio/trace-events b/hw/virtio/trace-events
index ab8e095..20af2e7 100644
--- a/hw/virtio/trace-events
+++ b/hw/virtio/trace-events
@@ -124,6 +124,7 @@ virtio_iommu_remap(const char *name, uint64_t virt_start, uint64_t virt_end, uin
virtio_iommu_set_page_size_mask(const char *name, uint64_t old, uint64_t new) "mr=%s old_mask=0x%"PRIx64" new_mask=0x%"PRIx64
virtio_iommu_notify_flag_add(const char *name) "add notifier to mr %s"
virtio_iommu_notify_flag_del(const char *name) "del notifier from mr %s"
+virtio_iommu_switch_address_space(uint8_t bus, uint8_t slot, uint8_t fn, bool on) "Device %02x:%02x.%x switching address space (iommu enabled=%d)"
# virtio-mem.c
virtio_mem_send_response(uint16_t type) "type=%" PRIu16