vtd: Add checking on return value of init_vtd_hw()
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 13 Aug 2008 08:56:15 +0000 (09:56 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 13 Aug 2008 08:56:15 +0000 (09:56 +0100)
commit06b01c320bf8bd005c441d01d6c73af6099cc5ae
treecb83859c4346e2745d1d029a36310c1d407a5298
parent07cb2c22b5f19f1b53a4bbef51af125913f989a5
vtd: Add checking on return value of init_vtd_hw()

This ensures correct actions will be taken if init_vtd_hw()
fails. Especially, when 'iommu=force' is used, Xen should not
boot if init_vtd_hw() fails.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/drivers/passthrough/vtd/iommu.c