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
..
2017-05-18 10:05:52 +01:00
2017-05-18 10:01:08 +01:00
2016-10-04 13:28:07 +01:00
2017-05-18 10:01:08 +01:00
2017-01-27 18:08:00 +01:00
2017-05-18 10:05:52 +01:00
2017-05-18 10:05:52 +01:00
2016-05-18 15:04:27 +03:00
2017-01-27 18:07:59 +01:00
2017-05-18 10:05:52 +01:00
2017-05-17 10:37:01 -03:00
2017-05-18 10:01:08 +01:00
2016-01-29 15:07:25 +00:00
2017-05-17 10:37:01 -03:00
2017-05-17 10:37:01 -03:00
2016-10-28 18:17:24 +03:00