From: Jan Beulich <jbeulich@suse.com>
To: "Roger Pau Monné" <roger.pau@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Anthony PERARD <anthony.perard@vates.tech>,
Michal Orzel <michal.orzel@amd.com>,
Julien Grall <julien@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v4 4/8] pdx: allow per-arch optimization of PDX conversion helpers
Date: Tue, 5 Aug 2025 17:02:44 +0200 [thread overview]
Message-ID: <d1cc3bea-b247-4704-9b69-e5d2c81cb587@suse.com> (raw)
In-Reply-To: <aJITOc6LSUULdxYQ@macbook.local>
On 05.08.2025 16:20, Roger Pau Monné wrote:
> On Tue, Aug 05, 2025 at 02:11:22PM +0200, Jan Beulich wrote:
>> On 05.08.2025 11:52, Roger Pau Monne wrote:
>>> There are four performance critical PDX conversion helpers that do the PFN
>>> to/from PDX and the physical addresses to/from directmap offsets
>>> translations.
>>>
>>> In the absence of an active PDX compression, those functions would still do
>>> the calculations needed, just to return the same input value as no
>>> translation is in place and hence PFN and PDX spaces are identity mapped.
>>>
>>> To reduce the overhead of having to do the pointless calculations allow
>>> architectures to implement the translation helpers in a per-arch header.
>>> Rename the existing conversion functions to add a trailing _xlate suffix,
>>> so that the per-arch headers can define the non suffixed versions.
>>>
>>> Currently only x86 implements meaningful custom handlers to short circuit
>>> the translation when not active, using asm goto. Other architectures use
>>> generic macros that map the non-xlate to the xlate variants to keep the
>>> previous behavior.
>>>
>>> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
>>
>> Once again:
>> Reviewed-by: Jan Beulich <jbeulich@suse.com>
>
> Thanks, I didn't carry your RB due to the changes requested by Andrew,
> that was a bit too much to carry a RB after those.
Of course, and I didn't mean to suggest you should have kept it. All I
wanted to indicate is that I'm as okay withe change as I was before.
Jan
next prev parent reply other threads:[~2025-08-05 15:03 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-05 9:52 [PATCH v4 0/8] pdx: introduce a new compression algorithm Roger Pau Monne
2025-08-05 9:52 ` [PATCH v4 1/8] kconfig: turn PDX compression into a choice Roger Pau Monne
2025-08-08 17:10 ` Julien Grall
2025-08-05 9:52 ` [PATCH v4 2/8] pdx: provide a unified set of unit functions Roger Pau Monne
2025-08-08 17:21 ` Julien Grall
2025-08-11 8:07 ` Roger Pau Monné
2025-08-11 16:42 ` Julien Grall
2025-08-05 9:52 ` [PATCH v4 3/8] pdx: introduce command line compression toggle Roger Pau Monne
2025-08-05 9:52 ` [PATCH v4 4/8] pdx: allow per-arch optimization of PDX conversion helpers Roger Pau Monne
2025-08-05 12:11 ` Jan Beulich
2025-08-05 14:20 ` Roger Pau Monné
2025-08-05 15:02 ` Jan Beulich [this message]
2025-08-05 9:52 ` [PATCH v4 5/8] test/pdx: add PDX compression unit tests Roger Pau Monne
2025-08-06 8:16 ` Anthony PERARD
2025-08-05 9:52 ` [PATCH v4 6/8] pdx: move some helpers in preparation for new compression Roger Pau Monne
2025-08-05 9:52 ` [PATCH v4 7/8] pdx: introduce a new compression algorithm based on region offsets Roger Pau Monne
2025-08-05 12:28 ` Jan Beulich
2025-08-05 14:37 ` Roger Pau Monné
2025-08-05 9:52 ` [PATCH v4 8/8] x86/mm: adjust loop in arch_init_memory() to iterate over the PDX space Roger Pau Monne
2025-08-05 12:38 ` Jan Beulich
2025-08-05 15:27 ` Roger Pau Monné
2025-08-06 8:11 ` Jan Beulich
2025-08-06 10:25 ` 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=d1cc3bea-b247-4704-9b69-e5d2c81cb587@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=roger.pau@citrix.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.