From: "Radim Krčmář" <rkrcmar@redhat.com>
To: James Sullivan <sullivan.james.f@gmail.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
kvm@vger.kernel.org, gleb@kernel.org, pbonzini@redhat.com
Subject: Re: [Patch v5] x86: irq_comm: Add check for RH bit in kvm_set_msi_irq
Date: Mon, 23 Mar 2015 22:13:31 +0100 [thread overview]
Message-ID: <20150323211331.GA21710@potion.brq.redhat.com> (raw)
In-Reply-To: <550C5DD7.5050306@gmail.com>
2015-03-20 11:50-0600, James Sullivan:
> On 03/20/2015 09:22 AM, James Sullivan wrote:
> > On 03/20/2015 09:15 AM, Radim Krčmář wrote:
> >> 2015-03-19 16:51-0600, James Sullivan:
> >>> I played around with native_compose_msi_msg and discovered the following:
> >>>
> >>> * dm=0, rh=0 => Physical Destination Mode
> >>> * dm=0, rh=1 => Failed delivery
> >>> * dm=1, rh=0 => Logical Destination Mode, No Redirection
> >>> * dm=1, rh=1 => Logical Destination Mode, Redirection
> >>
> >> Great! (What CPU family was that?)
> >>
> >
> > This was on Intel x86_64 (Core i5-3210m, 'Ivy Bridge').
Thanks, it's possible that the behavior of chipsets changed since the
report on Intel's forum ...
(Lowest priority behaved differently before QPI, so it might coincide.)
> >> I'm still wondering about last sentence from that link, the
> >> parenthesised part to be exact,
> >> The reference to the APIC ID being 0xff is because 0xff is broadcast
> >> and lowest priority (what the RH bit really is for X86) is illegal
> >> with broadcast.
> >>
> >> Can you also check if RH=1 does something to delivery mode?
>
> I haven't seen any changes in the MSI Data Register for any values of RH,
> but I don't have a great sample size (one machine with one set of PCI devices),
> so if anyone else can confirm that I would appreciate it.
I meant if the delivery mode from data register isn't ignored with RH=1,
and the message delivered as if lowest-priority was set there.
(Decided by having something else than fixed or lowest-priority there.)
> Worth noting that low prio delivery was used across the board for my PCI devices
> regardless of RH=1 or 0, so it doesn't seem to be de facto the case that the RH
> bit's only purpose is for lowprio delivery on x86.
Yeah, afaik, it can be done with lowest priority delivery mode on ia64
too, so I have a hard time finding RH's intended purpose.
> Again, need to have some more
> PCI devices to test against to confirm anything.
It's impossible to test everything, and there is no conflict if we have
at most one data point ;)
next prev parent reply other threads:[~2015-03-23 21:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 15:14 [Patch v5] x86: irq_comm: Add check for RH bit in kvm_set_msi_irq James Sullivan
2015-03-13 15:48 ` Radim Krčmář
2015-03-17 15:23 ` James Sullivan
2015-03-18 22:52 ` Marcelo Tosatti
2015-03-19 0:59 ` James Sullivan
2015-03-19 1:09 ` Marcelo Tosatti
2015-03-19 13:00 ` Radim Krčmář
2015-03-19 22:51 ` James Sullivan
2015-03-20 15:15 ` Radim Krčmář
2015-03-20 15:22 ` James Sullivan
2015-03-20 17:50 ` James Sullivan
2015-03-23 21:13 ` Radim Krčmář [this message]
2015-03-23 22:46 ` James Sullivan
2015-03-24 14:03 ` Radim Krčmář
2015-03-24 14:17 ` James Sullivan
2015-04-02 22:08 ` James Sullivan
2015-04-03 10:11 ` Radim Krčmář
2015-04-21 12:18 ` Paolo Bonzini
2015-04-21 12:44 ` Radim Krčmář
2015-03-19 1:11 ` Marcelo Tosatti
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=20150323211331.GA21710@potion.brq.redhat.com \
--to=rkrcmar@redhat.com \
--cc=gleb@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=sullivan.james.f@gmail.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.