All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Jacob Shin <jacob.shin@amd.com>,
	Xiantao Zhang <xiantao.zhang@intel.com>,
	Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
	xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH 4/4] AMD IOMMU: untie remap and vector maps
Date: Thu, 28 Mar 2013 13:40:52 +0000	[thread overview]
Message-ID: <51544864.8070308@eu.citrix.com> (raw)
In-Reply-To: <51544F3702000078000C9419@nat28.tlf.novell.com>

On 28/03/13 13:09, Jan Beulich wrote:
>>>> On 28.03.13 at 13:37, George Dunlap <George.Dunlap@eu.citrix.com> wrote:
>> On Tue, Mar 26, 2013 at 9:05 AM, Jan Beulich <JBeulich@suse.com> wrote:
>>> With the specific IRTEs used for an interrupt no longer depending on
>>> the vector, there's no need to tie the remap sharing model to the
>>> vector sharing one.
>>>
>>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>> Unfortunately I'm having a bit of trouble "paging in" the technical
>> details of why this change was necessary.  I thought that the
>> limitation had to do with the remapping table itself.  Are you saying
>> that if interrupt X maps to pcpu 0 vector 5, and interrupt Y maps to
>> pcpu 2 vector 5, that even if X and Y are in the same table, they will
>> still go to the right place?  Could you give me a brief explanation of
>> why that is?  (I don't know what IRTE is, and Google is not helpful.)
> Previously the remapping table was indexed by vector (combined
> with delivery mode, for whatever reason). That way, a particular
> vector, no matter which CPU it would have been meant to go to
> caused the same IRTE (Interrupt Remapping Table Entry) to be
> selected, and with it the same destination ID.
>
> By not using the vector for indexing anymore, a vector allocated
> in CPU A's space connects with IRTE x with destination ID set to
> (or including, when in cluster or flat mode) whereas CPU B's
> identical vector connects to a different IRTE (even when using a
> single global remapping table), properly set to the destination ID
> for (or including) that CPU.

OK -- well assuming that to be the case:

Acked-by: George Dunlap <george.dunlap@eu.citrix.com>

  reply	other threads:[~2013-03-28 13:40 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-26  8:51 [PATCH 0/4] x86/IOMMU: multi-vector MSI prerequisites Jan Beulich
2013-03-26  9:03 ` [PATCH 1/4] IOMMU: allow MSI message to IRTE propagation to fail Jan Beulich
2013-03-27 11:45   ` George Dunlap
2013-03-27 12:16     ` Jan Beulich
2013-03-27 14:45       ` Boris Ostrovsky
2013-03-27 14:55       ` George Dunlap
2013-03-28  8:25         ` Jan Beulich
2013-03-28  9:46           ` Tim Deegan
2013-03-28  9:49             ` George Dunlap
2013-03-28 10:33           ` George Dunlap
2013-03-28 11:14             ` Jan Beulich
2013-03-28 11:25               ` Tim Deegan
2013-03-28 11:39               ` George Dunlap
2013-03-28 13:47               ` Stefano Stabellini
2013-05-06 20:25               ` Is: git send-email, patch sending, etc Was: " Konrad Rzeszutek Wilk
2013-05-07  8:53                 ` Ian Campbell
2013-05-07  9:26                 ` Wei Liu
2013-05-07 14:03                   ` Konrad Rzeszutek Wilk
2013-03-27 17:26   ` George Dunlap
2013-03-28  8:27     ` Jan Beulich
2013-03-26  9:03 ` [PATCH 2/4] x86/MSI: cleanup to prepare for multi-vector MSI Jan Beulich
2013-03-26  9:04 ` [PATCH 3/4] AMD IOMMU: allocate IRTE entries instead of using a static mapping Jan Beulich
2013-04-02  8:38   ` [PATCH v2 " Jan Beulich
2013-04-11  0:34     ` Suravee Suthikulpanit
2013-03-26  9:05 ` [PATCH 4/4] AMD IOMMU: untie remap and vector maps Jan Beulich
2013-03-28 12:37   ` George Dunlap
2013-03-28 13:09     ` Jan Beulich
2013-03-28 13:40       ` George Dunlap [this message]
2013-03-29  5:18 ` [PATCH 0/4] x86/IOMMU: multi-vector MSI prerequisites Suravee Suthikulpanit
2013-03-29  5:45   ` Suravee Suthikulpanit
2013-04-02  8:39     ` Jan Beulich
2013-04-10 13:55       ` Jan Beulich
2013-04-10 14:38         ` Suravee Suthikulanit
2013-04-10 14:46           ` Jan Beulich
2013-04-11  1:51             ` Suravee Suthikulpanit
2013-04-11  7:13               ` Jan Beulich
2013-04-11 15:40                 ` suravee suthikulpanit
2013-04-11 16:11                   ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51544864.8070308@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=jacob.shin@amd.com \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=xen-devel@lists.xen.org \
    --cc=xiantao.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.