projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07cb2c2
)
vtd: Add checking on return value of init_vtd_hw()
author
Keir Fraser
<keir.fraser@citrix.com>
Wed, 13 Aug 2008 08:56:15 +0000
(09:56 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Wed, 13 Aug 2008 08:56:15 +0000
(09:56 +0100)
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
patch
|
blob
|
history
diff --git
a/xen/drivers/passthrough/vtd/iommu.c
b/xen/drivers/passthrough/vtd/iommu.c
index d53140b7b05835bb0381d5d0ead6ba60fa5a56fa..36bdafbe5b9459c19e2955c43a89a5d45e366ea0 100644
(file)
--- a/
xen/drivers/passthrough/vtd/iommu.c
+++ b/
xen/drivers/passthrough/vtd/iommu.c
@@
-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");