Skip to contentSkip to conversation

Intel VT-D: Don't turn x2APIC if there is a missing DRHD entry for the IOAPIC]

PATCH Jan Beulich 4 participants 4 messages Mar 10, 2010 – Mar 11, 2010

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Konrad Rzeszutek Wilk 03/09/10 6:34 PM >>>

What are you guys feeling about this patch?

My main question is whether just disabling x2apic in this case is sufficient (i.e. whether instead we shouldn't disable iommu, or at least interrupt remapping, altogether).

Jan

#1 lore raw
Quoted 7 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Konrad Rzeszutek Wilk 03/09/10 6:34 PM >>>

What are you guys feeling about this patch?

My main question is whether just disabling x2apic in this case is sufficient (i.e. whether instead we shouldn't disable iommu, or at least interrupt remapping, altogether).

iommu_enable is called after this point, and it also has sanity-check to determine whether enable or disable iommu and its related features. This early check is only used to determine whether to enable x2apic because it must be enabled at very early time if supported. Xiantao

#2 lore raw
Quoted 10 lines · Xiantao
Quoted 7 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Konrad Rzeszutek Wilk 03/09/10 6:34 PM >>>

What are you guys feeling about this patch?

My main question is whether just disabling x2apic in this case is sufficient (i.e. whether instead we shouldn't disable iommu, or at least interrupt remapping, altogether).

iommu_enable is called after this point, and it also has sanity-check to determine whether enable or disable iommu and its related features. This early check is only used to determine whether to enable x2apic because it must be enabled at very early time if supported.

Exactly. So the x2APIC is turned off here and then later on the Interrupt Remaping is turned off as well.

#3 lore raw

Hi Konrad,
Thanks for the patch! (Sorry for the late reply -- I was on leave...)
BTW, the same sanity checking code also appears in init_vtd_hw(). Maybe we could write a function for the check to remove the duplication in future. :-)

Thanks,
-- Dexuan

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Konrad Rzeszutek Wilk
Sent: 2010年3月10日 23:38
To: Zhang, Xiantao
Cc: [email protected]
Subject: Re: [[email protected]: [Xen-devel] [PATCH 1 of 1] Intel VT-D: Don't turn x2APIC if there is a missing DRHD entry for the IOAPIC]

Quoted 10 lines · Xiantao
Quoted 7 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Konrad Rzeszutek Wilk 03/09/10 6:34 PM >>>

What are you guys feeling about this patch?

My main question is whether just disabling x2apic in this case is sufficient (i.e. whether instead we shouldn't disable iommu, or at least interrupt remapping, altogether).

iommu_enable is called after this point, and it also has sanity-check to determine whether enable or disable iommu and its related features. This early check is only used to determine whether to enable x2apic because it must be enabled at very early time if supported.

Exactly. So the x2APIC is turned off here and then later on the Interrupt Remaping is turned off as well.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel