From: "David Hildenbrand (Red Hat)" <david@kernel.org>
To: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com>,
linux-kernel@vger.kernel.org
Cc: linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org,
Andrew Morton <akpm@linux-foundation.org>,
Madhavan Srinivasan <maddy@linux.ibm.com>,
Michael Ellerman <mpe@ellerman.id.au>,
Nicholas Piggin <npiggin@gmail.com>,
Christophe Leroy <christophe.leroy@csgroup.eu>
Subject: Re: [PATCH v1 0/2] powerpc/pseries/cmm: two smaller fixes
Date: Fri, 28 Nov 2025 08:36:06 +0100 [thread overview]
Message-ID: <3cc7d401-c77c-4ac8-abb8-c264fbd9aaf0@kernel.org> (raw)
In-Reply-To: <87zf86n3vq.ritesh.list@gmail.com>
On 11/28/25 06:05, Ritesh Harjani (IBM) wrote:
> "David Hildenbrand (Red Hat)" <david@kernel.org> writes:
>
>> On 10/21/25 12:06, David Hildenbrand wrote:
>>> Two smaller fixes identified while doing a bigger rework.
>>>
>>> Compile-tested only as I don't have an easy way to test right now.
>>>
>>> I would prefer for these patches to go through the MM tree as I will
>>> be sending out a bigger version soon that is based on this series --
>>> I split of the fixes from the other stuff.
>>>
>>
>> Ping,
>>
>> I tried to get CMM running again (using the simulation mode I introduced
>> a while back), but so far my attempts to get a reasonable powernv VM
>> booted in QEMU failed :(
>>
>> (e.g., Fedora qcow2 images use xfs, but the open powernv loader is based
>> on a 5.10 kernel without some mystical XFS feature ...)
>>
>
Hi Ritesh,
> Sorry, I missed seeing this earlier.
>
> Do you have the link to simulation mode which you are referring above
> please? So far I didn't find the support of this beyond Linux LPAR
> (pseries), but maybe I missed it.
When I did a rework of the CMM balloon in 2019, I needed a way to test
it. So I added
commit b1713975c31ae20ecc40fd00191ee3fa51445d4a
Author: David Hildenbrand <david@kernel.org>
Date: Thu Oct 31 15:29:31 2019 +0100
powerpc/pseries/cmm: Simulation mode
Let's allow to test the implementation without needing HW support.
When "simulate=1" is specified when loading the module, we bypass all
HW checks and HW calls. The sysfs file "simulate_loan_target_kb" can
be used to simulate HW requests.
The simualtion mode can be activated using:
modprobe cmm debug=1 simulate=1
And the requested loan target can be changed using:
echo X > /sys/devices/system/cmm/cmm0/simulate_loan_target_kb
I allows for bypassing the absence of FW_FEATURE_CMO.
Back in the days I was able to test it with a pseries (or was it powernv?)
machine we had here at RH. So far my attempts failed to test it in a
similar fashion in QEMU.
--
Cheers
David
next prev parent reply other threads:[~2025-11-28 7:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-21 10:06 David Hildenbrand
2025-10-21 10:06 ` [PATCH v1 1/2] powerpc/pseries/cmm: call balloon_devinfo_init() also without CONFIG_BALLOON_COMPACTION David Hildenbrand
2025-11-28 9:07 ` Ritesh Harjani
2025-10-21 10:06 ` [PATCH v1 2/2] powerpc/pseries/cmm: adjust BALLOON_MIGRATE when migrating pages David Hildenbrand
2025-11-28 10:12 ` Ritesh Harjani
2025-11-26 15:40 ` [PATCH v1 0/2] powerpc/pseries/cmm: two smaller fixes David Hildenbrand (Red Hat)
2025-11-28 5:05 ` Ritesh Harjani
2025-11-28 7:36 ` David Hildenbrand (Red Hat) [this message]
2025-11-28 7:49 ` Ritesh Harjani
2025-11-28 8:10 ` David Hildenbrand (Red Hat)
2025-11-28 8:24 ` David Hildenbrand (Red Hat)
2025-11-28 10:40 ` Ritesh Harjani
2025-11-28 11:45 ` David Hildenbrand (Red Hat)
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=3cc7d401-c77c-4ac8-abb8-c264fbd9aaf0@kernel.org \
--to=david@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=christophe.leroy@csgroup.eu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=ritesh.list@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox