From: "Roger Pau Monné" <roger.pau@citrix.com>
To: "Jürgen Groß" <jgross@suse.com>
Cc: xen-devel@lists.xenproject.org,
Anthony PERARD <anthony.perard@vates.tech>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Michal Orzel <michal.orzel@amd.com>,
Jan Beulich <jbeulich@suse.com>, Julien Grall <julien@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>,
Anthoine Bourgeois <anthoine.bourgeois@vates.tech>
Subject: Re: [PATCH v2] x86/hvmloader: select xenpci MMIO BAR UC or WB MTRR cache attribute
Date: Thu, 5 Jun 2025 09:56:47 +0200 [thread overview]
Message-ID: <aEFNvwXcgor29lrc@macbook.local> (raw)
In-Reply-To: <2c26fe05-ef42-48a0-9d9d-ad86100eaf01@suse.com>
On Wed, Jun 04, 2025 at 12:33:55PM +0200, Jürgen Groß wrote:
> On 03.06.25 13:18, Roger Pau Monne wrote:
> > The Xen PCI device (vendor ID 0x5853) exposed to x86 HVM guests doesn't
> > diff --git a/tools/firmware/hvmloader/pci.c b/tools/firmware/hvmloader/pci.c
> > index cc67b18c0361..97933b44a82b 100644
> > --- a/tools/firmware/hvmloader/pci.c
> > +++ b/tools/firmware/hvmloader/pci.c
> > @@ -30,7 +30,7 @@
> > #include <xen/hvm/e820.h>
> > uint32_t pci_mem_start = HVM_BELOW_4G_MMIO_START;
> > -const uint32_t pci_mem_end = RESERVED_MEMBASE;
> > +uint32_t pci_mem_end = RESERVED_MEMBASE;
> > uint64_t pci_hi_mem_start = 0, pci_hi_mem_end = 0;
> > /*
> > @@ -116,6 +116,8 @@ void pci_setup(void)
> > * experience the memory relocation bug described below.
> > */
> > bool allow_memory_relocate = 1;
> > + /* Set the MTRR type of the xenpci device BAR as UC. */
> > + bool xenpci_bar_uc = false;
>
> Hmm, shouldn't this be "true"? Or should the comment be changed?
The intention of the comment was to signal that this variable is used
to set the BAR cache attributes to UC possibly, but I can see how
that's confusing. What about using:
/* Select the MTRR cache attributes of the xenpci device BAR. */
bool xenpci_bar_uc = false;
Thanks, Roger.
next prev parent reply other threads:[~2025-06-05 7:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-03 11:18 [PATCH v2] x86/hvmloader: select xenpci MMIO BAR UC or WB MTRR cache attribute Roger Pau Monne
2025-06-04 10:33 ` Jürgen Groß
2025-06-05 7:56 ` Roger Pau Monné [this message]
2025-06-05 8:51 ` Juergen Gross
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=aEFNvwXcgor29lrc@macbook.local \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthoine.bourgeois@vates.tech \
--cc=anthony.perard@vates.tech \
--cc=jbeulich@suse.com \
--cc=jgross@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=sstabellini@kernel.org \
--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.