public inbox for linux-cxl@vger.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Alireza Sanaee <alireza.sanaee@huawei.com>
Cc: <qemu-devel@nongnu.org>,  <anisa.su@samsung.com>,
	<berrange@redhat.com>,  <eblake@redhat.com>,
	<jonathan.cameron@huawei.com>,  <linux-cxl@vger.kernel.org>,
	<linuxarm@huawei.com>,  <lizhijian@fujitsu.com>,
	 <mst@redhat.com>, <pbonzini@redhat.com>,  <gourry@gourry.net>,
	 <nifan.cxl@gmail.com>, <me@linux.beauty>,  <ira.weiny@intel.com>
Subject: Re: [PATCH 9/9] hw/cxl: Add QMP status query for dynamic-capacity extent release
Date: Wed, 01 Apr 2026 13:39:42 +0200	[thread overview]
Message-ID: <87tstu29kx.fsf@pond.sub.org> (raw)
In-Reply-To: <20260331155044.0000603d.alireza.sanaee@huawei.com> (Alireza Sanaee's message of "Tue, 31 Mar 2026 15:50:44 +0100")

Alireza Sanaee <alireza.sanaee@huawei.com> writes:

> On Sat, 28 Mar 2026 07:01:51 +0100
> Markus Armbruster <armbru@redhat.com> wrote:
>
> +CC Ira
>
> Hi Markus,
>
> Please look inline. I believe Ira might be able to help and we can see what he thinks.
>
>> Alireza Sanaee <alireza.sanaee@huawei.com> writes:
>> 
>> > On Thu, 26 Mar 2026 16:15:40 +0100
>> > Markus Armbruster <armbru@redhat.com> wrote:
>> >
>> > Hi Markus,
>> >
>> > This commit adds a test command to check whether an extent (a piece of memory region) has been released or not by the guest.
>> > The process of removal is highly asynchronous, that's why I needed to add a new command to check it.
>> >
>> > I would be happy to drop this patch, as this is extra.  
>> 
>> So your motivation for adding the command is "just" testing.  Correct?
>
> I wrote tests to make sure extents were released, and I used this QMP command to check.

As long as this is the only known use case, we want

    # @unstable: This command is meant for debugging.

in the QAPI schema.

> Now there is background about extents where DCD was developed in Linux by @Ira, CCed [1].
>
> In the DCD extent tracking section of the CXL spec, I see some commands 
> related to getting the extent list, maybe Ira can comment here. To be fair, knowing if an extent
> was released or not is a useful information in general from orchestrator perspective.
>
> [1] https://patchew.org/linux/20250413-dcd-type2-upstream-v9-0-1d4911a0b365@intel.com/

If we believe there are other uses, but we're unsure the command
actually serves them:

    # @unstable: This command is experimental.

>> Can you think of other uses?
>> 
>> In particular, would a management application need this query to monitor
>> removal?
>
> I think management will get a signal on the removal given the schema in Ira's Linux kernel 
> patchset. I do not think this is implemented in QEMU at least (I might be missing something).

I'm getting a feeling of "this is underbaked" :)  But that's for the CXL
maintainers to judge.

>> The description of feature @unstable may need to be adjusted for the
>> answers we work out here.
>
> Absolutely.
>
>> 
>> >
>> > Thanks,
>> > Ali  
>> 
>> 


      reply	other threads:[~2026-04-01 11:39 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-25 18:42 [QEMU PATCH 0/9] Application Specific Tagged Memory Support in CXL Type 3 Devices Alireza Sanaee
2026-03-25 18:42 ` [PATCH 1/9] hw/mem: Add tag support to generic host memory backends Alireza Sanaee
2026-03-26 10:42   ` Markus Armbruster
2026-03-26 11:29     ` Alireza Sanaee
2026-03-26 13:01       ` Markus Armbruster
2026-03-26 13:04         ` Alireza Sanaee
2026-03-25 18:42 ` [PATCH 2/9] hw/cxl: Allow initializing type3 device with no backing device Alireza Sanaee
2026-03-25 18:42 ` [PATCH 3/9] hw/cxl: Hook up tagged host memory backends at runtime for DC extents Alireza Sanaee
2026-03-25 18:42 ` [PATCH 4/9] hw/cxl: Carry backend metadata in DC extent records Alireza Sanaee
2026-03-25 18:42 ` [PATCH 5/9] hw/cxl: Map lazy memory backend after host acceptance Alireza Sanaee
2026-03-30  8:24   ` Anisa Su
2026-03-30 17:18     ` Anisa Su
2026-03-25 18:42 ` [PATCH 6/9] hw/cxl: Create direct fixed-window aliases for accepted extents Alireza Sanaee
2026-03-25 18:42 ` [PATCH 7/9] hw/cxl: Add release-time teardown for direct-mapped extents Alireza Sanaee
2026-03-25 18:42 ` [PATCH 8/9] hw/cxl: Add tag-based dynamic-capacity release support Alireza Sanaee
2026-03-30 18:03   ` Anisa Su
2026-03-31 14:53     ` Alireza Sanaee
2026-03-25 18:42 ` [PATCH 9/9] hw/cxl: Add QMP status query for dynamic-capacity extent release Alireza Sanaee
2026-03-26 15:15   ` Markus Armbruster
2026-03-27 15:18     ` Alireza Sanaee
2026-03-28  6:01       ` Markus Armbruster
2026-03-31 14:50         ` Alireza Sanaee
2026-04-01 11:39           ` Markus Armbruster [this message]

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=87tstu29kx.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=alireza.sanaee@huawei.com \
    --cc=anisa.su@samsung.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=gourry@gourry.net \
    --cc=ira.weiny@intel.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=lizhijian@fujitsu.com \
    --cc=me@linux.beauty \
    --cc=mst@redhat.com \
    --cc=nifan.cxl@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox