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>
This commit is contained in:
Keir Fraser committed 2008-08-13 09:56:15 +01:00
1 parent 07cb2c22b5
commit 06b01c320b
1 file changed
+2 -1
+2 -1
View File
@@ -1789,7 +1789,8 @@ int intel_vtd_setup(void)
memset(domid_bitmap, 0, domid_bitmap_size / 8);
set_bit(0, domid_bitmap);
init_vtd_hw();
if ( init_vtd_hw() )
goto error;
register_keyhandler('V', dump_iommu_info, "dump iommu info");
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.