xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vt-d: ensure x2apic is not enabled accidently if no DRHD at all.
@ 2010-03-04  4:18 Cui, Dexuan
  2010-03-05 17:51 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 2+ messages in thread
From: Cui, Dexuan @ 2010-03-04  4:18 UTC (permalink / raw)
  To: Keir Fraser, Jan Beulich; +Cc: xen-devel@lists.xensource.com, Zhang, Xiantao

[-- Attachment #1: Type: text/plain, Size: 66 bytes --]

Thank Jan Beulich for pointing this out

Thanks,
-- Dexuan
 

[-- Attachment #2: do_not_enable_x2apic_if_no_drhd.patch --]
[-- Type: application/octet-stream, Size: 692 bytes --]

vt-d: ensure x2apic is not enabled accidently if no DRHD at all.

Thank Jan Beulich for pointing this out.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>

diff -r b8d2a4134a68 xen/drivers/passthrough/vtd/intremap.c
--- a/xen/drivers/passthrough/vtd/intremap.c	Wed Mar 03 17:41:58 2010 +0000
+++ b/xen/drivers/passthrough/vtd/intremap.c	Thu Mar 04 12:05:31 2010 +0800
@@ -131,6 +131,9 @@ int iommu_supports_eim(void)
     if ( !iommu_enabled || !iommu_qinval || !iommu_intremap )
         return 0;
 
+    if ( list_empty(&acpi_drhd_units) )
+        return 0;
+
     for_each_drhd_unit ( drhd )
         if ( !ecap_queued_inval(drhd->ecap) ||
              !ecap_intr_remap(drhd->ecap) ||

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-05 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-04  4:18 [PATCH] vt-d: ensure x2apic is not enabled accidently if no DRHD at all Cui, Dexuan
2010-03-05 17:51 ` Konrad Rzeszutek Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).