[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] vtd: Add checking on return value of init_vtd_hw()
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1218617775 -3600 # Node ID 29e994c7678ef704b120cb87d7d12949498120a7 # Parent 2c63cf7b042d73be0bf7b34a544f75bf648cee8b 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@xxxxxxxxx> --- xen/drivers/passthrough/vtd/iommu.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r 2c63cf7b042d -r 29e994c7678e xen/drivers/passthrough/vtd/iommu.c --- a/xen/drivers/passthrough/vtd/iommu.c Tue Aug 12 10:23:34 2008 +0100 +++ b/xen/drivers/passthrough/vtd/iommu.c Wed Aug 13 09:56:15 2008 +0100 @@ -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"); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |