x86/AMD-Vi: Fold exit paths of {enable,disable}_iommu()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 12 Aug 2019 17:19:59 +0000 (18:19 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 14 Aug 2019 11:04:20 +0000 (12:04 +0100)
commit5b68915350e34b38968d89f03a2ff44973031429
tree03e505ea163e093d04409b304fbcf0b949296f58
parentc463d0d5ab6ede90efe914f3bfce4f1de3a25a75
x86/AMD-Vi: Fold exit paths of {enable,disable}_iommu()

... to avoid having multiple spin_unlock_irqrestore() calls.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Brian Woods <brian.woods@amd.com>
xen/drivers/passthrough/amd/iommu_init.c