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: Thu, 9 Apr 2026 19:36:31 +0200 [thread overview]
Message-ID: <adfjn296dde_RQYE@macbook.local> (raw)
In-Reply-To: <1903a57a-524e-4e6d-bd47-a87fadda4aa0@suse.com>
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?
Thanks, Roger.
next prev parent reply other threads:[~2026-04-09 17:36 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é [this message]
2026-04-10 5:51 ` Jan Beulich
2026-04-10 12:34 ` Roger Pau Monné
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=adfjn296dde_RQYE@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.