debuggers.hg
changeset 21045:e9d4cb54c551
vt-d: ensure x2apic is not enabled accidently if no DRHD at all.
Thanks to Jan Beulich for pointing this out.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Thanks to Jan Beulich for pointing this out.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Fri Mar 05 14:31:14 2010 +0000 (2010-03-05) |
parents | fd6946ad6816 |
children | 3138b3885999 |
files | xen/drivers/passthrough/vtd/intremap.c |
line diff
1.1 --- a/xen/drivers/passthrough/vtd/intremap.c Fri Mar 05 14:30:45 2010 +0000 1.2 +++ b/xen/drivers/passthrough/vtd/intremap.c Fri Mar 05 14:31:14 2010 +0000 1.3 @@ -131,6 +131,9 @@ int iommu_supports_eim(void) 1.4 if ( !iommu_enabled || !iommu_qinval || !iommu_intremap ) 1.5 return 0; 1.6 1.7 + if ( list_empty(&acpi_drhd_units) ) 1.8 + return 0; 1.9 + 1.10 for_each_drhd_unit ( drhd ) 1.11 if ( !ecap_queued_inval(drhd->ecap) || 1.12 !ecap_intr_remap(drhd->ecap) ||