From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Wang2 Subject: Re: AMD IOMMU intremap tables and IOAPICs Date: Wed, 7 Sep 2011 13:18:33 +0200 Message-ID: <201109071318.34239.wei.wang2@amd.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tuesday 06 September 2011 17:47:59 George Dunlap wrote: > Wei, > > Quick question: Am I reading the code correctly, that even with > per-device interrupt remap tables, that GSIs are accounted to the > intremap table of the corresponding IOAPIC, presumably because the > IOMMU sees interrupts generated as GSIs as coming from the IOAPIC? In > that case, then we need all devices sharing the same IOAPIC must not > have any vector collisions. Is that correct? > > -George That is true. All legacy devices have to send interrupts to IOMMU via IOAPIC. So even we use per-device table. All devices attached to the same IOAPIC will use the same interrupt table. There should be no vector collisions. Per-device table only makes sense for MSI devices or systems with multiple IOAPICs. Thanks Wei