qemu-e2k/hw/i386
Peter Xu f80c98740e intel_iommu: allow dev-iotlb context entry conditionally
When device-iotlb is not specified, we should fail this check. A new
function vtd_ce_type_check() is introduced.

While I'm at it, clean up the vtd_dev_to_context_entry() a bit - replace
many "else if" usage into direct if check. That'll make the logic more
clear.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
2017-05-25 21:25:27 +03:00
..
kvm ioapic: Remove user_creatable flag 2017-05-17 10:37:01 -03:00
xen xen/mapcache: store dma information in revmapcache entries for debugging 2017-05-16 11:49:09 -07:00
acpi-build.c pci, virtio, vhost: fixes 2017-05-18 10:01:08 +01:00
acpi-build.h Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
amd_iommu.c memory: tune last param of iommu_ops.translate() 2017-05-25 21:25:27 +03:00
amd_iommu.h i386: amd_iommu: fix MMIO register count and access 2016-12-16 01:14:38 +02:00
intel_iommu_internal.h intel_iommu: enable remote IOTLB 2017-04-20 15:22:41 -03:00
intel_iommu.c intel_iommu: allow dev-iotlb context entry conditionally 2017-05-25 21:25:27 +03:00
kvmvapic.c kvmvapic: Remove user_creatable flag 2017-05-17 10:37:01 -03:00
Makefile.objs hw/i386: Introduce AMD IOMMU 2016-09-24 01:02:00 +03:00
multiboot.c multiboot: copy the cmdline verbatim, unescape module strings 2016-12-22 16:00:26 +01:00
multiboot.h
pc_piix.c pci, virtio, vhost: fixes 2017-05-18 10:01:08 +01:00
pc_q35.c migration: migration.h was not needed 2017-05-18 19:20:59 +02:00
pc_sysfw.c
pc.c pci, virtio, vhost: fixes 2017-05-18 10:01:08 +01:00
pci-assign-load-rom.c pci-assign: avoid pointless stat 2017-01-24 23:26:53 +03:00
trace-events intel_iommu: enable remote IOTLB 2017-04-20 15:22:41 -03:00
x86-iommu.c x86-iommu: use DeviceClass properties 2017-05-25 21:25:27 +03:00