OSDN Git Service

iommu/vt-d: Add set domain DOMAIN_ATTR_NESTING attr
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 2 Jan 2020 00:18:15 +0000 (08:18 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 7 Jan 2020 13:05:58 +0000 (14:05 +0100)
commit2cd1311a26673d45ffa8b7c8f46a8c7023601491
tree461a01ed81de0f043dd38e1c500d4e13e8e755ed
parenta1948f2e0a9d7ba6b9af883c673986752d9da52d
iommu/vt-d: Add set domain DOMAIN_ATTR_NESTING attr

This adds the Intel VT-d specific callback of setting
DOMAIN_ATTR_NESTING domain attribution. It is necessary
to let the VT-d driver know that the domain represents
a virtual machine which requires the IOMMU hardware to
support nested translation mode. Return success if the
IOMMU hardware suports nested mode, otherwise failure.

Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c