iommu/vt-d: Introduce helper functions to improve code readability
authorJiang Liu <jiang.liu@linux.intel.com>
Fri, 11 Jul 2014 06:19:27 +0000 (14:19 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 23 Jul 2014 14:04:46 +0000 (16:04 +0200)
commitab8dfe251571e4a04d367e47e5be93976a77c610
tree585c9aac66db081f7f4911b571e577f108150feb
parent18fd779a41eff52b597bd2d327194f98a83de4af
iommu/vt-d: Introduce helper functions to improve code readability

Introduce domain_type_is_vm() and domain_type_is_vm_or_si() to improve
code readability.

Also kill useless macro DOMAIN_FLAG_P2P_MULTIPLE_DEVICES.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c