iommu/vt-d: Consolidate domain_init() to avoid duplication
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 12 Jun 2019 00:28:51 +0000 (08:28 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 12 Jun 2019 08:36:59 +0000 (10:36 +0200)
commit123b2ffc376e1b3e9e015c75175b61e88a8b8518
tree53cc956263b3952a477dc210fe2e17e3573c7bce
parent16c9e29e12e8edbdf437001f46cf3f557aca80e8
iommu/vt-d: Consolidate domain_init() to avoid duplication

The domain_init() and md_domain_init() do almost the same job.
Consolidate them to avoid duplication.

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