summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorPeter Xu2017-05-19 05:19:46 +0200
committerMichael S. Tsirkin2017-05-25 20:25:27 +0200
commitf80c98740e8da9fa0e4056f174ca66a3afb1d15b (patch)
treeee0f0f81e661cef62aa44cdf9a508506210dcae4 /include/hw
parentintel_iommu: use IOMMU_ACCESS_FLAG() (diff)
downloadqemu-f80c98740e8da9fa0e4056f174ca66a3afb1d15b.tar.gz
qemu-f80c98740e8da9fa0e4056f174ca66a3afb1d15b.tar.xz
qemu-f80c98740e8da9fa0e4056f174ca66a3afb1d15b.zip
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>
Diffstat (limited to 'include/hw')
0 files changed, 0 insertions, 0 deletions