From: Jan Beulich <jbeulich@suse.com>
To: "Roger Pau Monné" <roger.pau@citrix.com>
Cc: Oleksii Kurochko <oleksii.kurochko@gmail.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v2 6/6] x86/hvm: reduce the need to flush caches in memory_type_changed()
Date: Mon, 19 May 2025 20:25:34 +0200 [thread overview]
Message-ID: <0e88db3c-0d68-4f4e-ba7c-e826dc0b9cd4@suse.com> (raw)
In-Reply-To: <aCtBRV3cTwTnKuLc@Mac.lan>
On 19.05.2025 16:33, Roger Pau Monné wrote:
> On Mon, May 19, 2025 at 03:22:32PM +0200, Jan Beulich wrote:
>> On 19.05.2025 13:08, Roger Pau Monné wrote:
>>> On Sun, May 18, 2025 at 01:44:49PM +0200, Jan Beulich wrote:
>>>> On 16.05.2025 11:45, Roger Pau Monne wrote:
>>>>> Not sure whether this attempt to reduce cache flushing should get some
>>>>> mention in the CHANGELOG.
>>>>
>>>> Err on the side of adding an entry there?
>>>
>>> Oleksii would you be fine with me adding:
>>>
>>> diff --git a/CHANGELOG.md b/CHANGELOG.md
>>> index 1ea06524db20..fa971cd9e6ee 100644
>>> --- a/CHANGELOG.md
>>> +++ b/CHANGELOG.md
>>> @@ -11,6 +11,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
>>> - For x86, GCC 5.1 and Binutils 2.25, or Clang/LLVM 11
>>> - For ARM32 and ARM64, GCC 5.1 and Binutils 2.25
>>> - Linux based device model stubdomains are now fully supported.
>>> + - On x86:
>>> + - Restrict the cache flushing done in memory_type_changed() to improve
>>> + performance.
>>
>> Maybe better to mention function names here, saying "after a memory type change
>> by a guest" instead?
>
> It's not just "after a memory type change by a guest", since
> memory_type_changed() is also used for toolstack operations like
> io{mem,ports}_{permit,deny}_access(), that strictly speaking are not
> memory type changes,
Sure, I'm aware. But I didn't think it would matter that much here. Still ...
> neither are done by the guest itself. I could
> reword to:
>
> - Restrict the cache flushing done as a result of guest physical
> memory map manipulations and memory type changes.
>
> Does that sound better?
... yes, let's go with this then.
Jan
next prev parent reply other threads:[~2025-05-19 18:26 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-16 9:45 [PATCH v2 0/6] xen: cache control improvements Roger Pau Monne
2025-05-16 9:45 ` [PATCH v2 1/6] x86/pv: fix emulation of wb{,no}invd to flush all pCPU caches Roger Pau Monne
2025-05-18 11:23 ` Jan Beulich
2025-05-16 9:45 ` [PATCH v2 2/6] x86/gnttab: do not implement GNTTABOP_cache_flush Roger Pau Monne
2025-05-16 9:48 ` Jan Beulich
2025-05-16 10:31 ` Roger Pau Monné
2025-05-16 10:38 ` Jan Beulich
2025-05-16 11:04 ` Roger Pau Monné
2025-05-19 7:45 ` Oleksii Kurochko
2025-05-16 9:45 ` [PATCH v2 3/6] xen/x86: rename cache_flush_permitted() to has_arch_io_resources() Roger Pau Monne
2025-05-18 11:29 ` Jan Beulich
2025-05-16 9:45 ` [PATCH v2 4/6] xen/x86: account for assigned PCI devices in cache_flush_permitted() Roger Pau Monne
2025-05-16 9:45 ` [PATCH v2 5/6] x86/hvm: limit memory type cache flush to running domains Roger Pau Monne
2025-05-18 11:38 ` Jan Beulich
2025-05-19 10:58 ` Roger Pau Monné
2025-05-16 9:45 ` [PATCH v2 6/6] x86/hvm: reduce the need to flush caches in memory_type_changed() Roger Pau Monne
2025-05-18 11:44 ` Jan Beulich
2025-05-19 11:08 ` Roger Pau Monné
2025-05-19 13:22 ` Jan Beulich
2025-05-19 14:33 ` Roger Pau Monné
2025-05-19 18:25 ` Jan Beulich [this message]
2025-05-20 14:23 ` Oleksii Kurochko
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=0e88db3c-0d68-4f4e-ba7c-e826dc0b9cd4@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=oleksii.kurochko@gmail.com \
--cc=roger.pau@citrix.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.