iommu/vt-d: Enable Translation only if it was previously disabled
authorJoerg Roedel <jroedel@suse.de>
Fri, 12 Jun 2015 12:40:01 +0000 (14:40 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 16 Jun 2015 08:59:35 +0000 (10:59 +0200)
commit8939ddf6d65264cf9f014ffd7c9bff02ad9626e6
tree6682340f0e2940871ba2bdab662389fe808f51a7
parent60b523ecfede05796aa77024b3960fecabab4de7
iommu/vt-d: Enable Translation only if it was previously disabled

Do not touch the TE bit unless we know translation is
disabled.

Tested-by: ZhenHua Li <zhen-hual@hp.com>
Tested-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c