All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	Andrew Cooper <andrew.cooper3@citrix.com>
Subject: Re: [PATCH] VT-d: avoid multi-message-MSI check for HPET
Date: Fri, 10 Apr 2026 14:34:58 +0200	[thread overview]
Message-ID: <adjucpWVe8jl-uNc@macbook.local> (raw)
In-Reply-To: <c1b2ab3c-7d4e-4f1d-b830-dbf1c933178e@suse.com>

On Fri, Apr 10, 2026 at 07:51:45AM +0200, Jan Beulich wrote:
> On 09.04.2026 19:36, Roger Pau Monné wrote:
> > On Wed, Apr 01, 2026 at 02:47:48PM +0200, Jan Beulich wrote:
> >> Having this immediately below a PCI-dev vs HPET conditional is (mildly)
> >> confusing. Move that if() into the body of the earlier one.
> >>
> >> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> >>
> >> --- a/xen/drivers/passthrough/vtd/intremap.c
> >> +++ b/xen/drivers/passthrough/vtd/intremap.c
> >> @@ -513,13 +513,13 @@ static int msi_msg_to_remap_entry(
> >>  
> >>          if ( rc )
> >>              return rc;
> >> +
> >> +        if ( msi_desc->msi_attrib.type == PCI_CAP_ID_MSI )
> >> +            nr = msi_desc->msi.nvec;
> >>      }
> >>      else
> >>          set_hpet_source_id(msi_desc->hpet_id, &new_ire);
> >>  
> >> -    if ( msi_desc->msi_attrib.type == PCI_CAP_ID_MSI )
> >> -        nr = msi_desc->msi.nvec;
> >> -
> > 
> > I'm not fully opposed to this, but maybe it would be good to add a
> > small comment to note that HPET never use multi-vector MSI?
> 
> That aspect doesn't change - HPET code simply doesn't (and never should)
> set .type to PCI_CAP_ID_MSI. That field should reflect reality (and HPET,
> iirc, simply leaves it at 0).

Hm, I see, HPET is a very special case which have been "adjusted" to
fit the MSI generation logic.

Acked-by: Roger Pau Monné <roger.pau@citrix.com>

Thanks, Roger.


      reply	other threads:[~2026-04-10 12:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-01 12:47 [PATCH] VT-d: avoid multi-message-MSI check for HPET Jan Beulich
2026-04-09 17:36 ` Roger Pau Monné
2026-04-10  5:51   ` Jan Beulich
2026-04-10 12:34     ` Roger Pau Monné [this message]

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=adjucpWVe8jl-uNc@macbook.local \
    --to=roger.pau@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=xen-devel@lists.xenproject.org \
    /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.