From: Yuvraj Sakshith <yuvraj.sakshith@oss.qualcomm.com>
To: "David Hildenbrand (Arm)" <david@kernel.org>
Cc: akpm@linux-foundation.org, mst@redhat.com, jasowang@redhat.com,
kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org,
decui@microsoft.com, linux-mm@kvack.org,
virtualization@lists.linux.dev, linux-hyperv@vger.kernel.org,
linux-kernel@vger.kernel.org, xuanzhuo@linux.alibaba.com,
eperezma@redhat.com, lorenzo.stoakes@oracle.com,
Liam.Howlett@oracle.com, vbabka@suse.cz, rppt@kernel.org,
surenb@google.com, mhocko@suse.com, jackmanb@google.com,
hannes@cmpxchg.org, ziy@nvidia.com
Subject: Re: [PATCH v2 1/4] mm/page_reporting: add PAGE_REPORTING_ORDER_UNSPECIFIED
Date: Tue, 3 Mar 2026 00:52:40 -0800 [thread overview]
Message-ID: <aaahWAWkXTS1lae+@hu-ysakshit-lv.qualcomm.com> (raw)
In-Reply-To: <2f14572e-e02b-4bc5-abd2-7814c24f7905@kernel.org>
On Mon, Mar 02, 2026 at 03:57:50PM +0100, David Hildenbrand (Arm) wrote:
> > /* Initialize to an unsupported value */
> > -unsigned int page_reporting_order = -1;
> > +unsigned int page_reporting_order = PAGE_REPORTING_ORDER_UNSPECIFIED;
> >
> > static int page_order_update_notify(const char *val, const struct kernel_param *kp)
> > {
> > @@ -25,12 +25,7 @@ static int page_order_update_notify(const char *val, const struct kernel_param *
> >
> > static const struct kernel_param_ops page_reporting_param_ops = {
> > .set = &page_order_update_notify,
> > - /*
> > - * For the get op, use param_get_int instead of param_get_uint.
> > - * This is to make sure that when unset the initialized value of
> > - * -1 is shown correctly
> > - */
> > - .get = ¶m_get_int,
> > + .get = ¶m_get_uint,
> > };
>
> I think the change to page_reporting_order (and param_get_int) should
> come after patch #4.
>
> Otherwise, you temporarily change the semantics of
> page_reporting_param_ops() etc.
>
> So you should perform the page_reporting_order changes either in patch
> #4 or in a new patch #5.
>
> Apart from that LGTM.
>
> --
> Cheers,
>
> David
Sounds good. Ill add a #5.
Thanks,
Yuvraj
next prev parent reply other threads:[~2026-03-03 8:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 11:17 [PATCH v2 0/4] Allow order zero pages in page reporting Yuvraj Sakshith
2026-03-02 11:17 ` [PATCH v2 1/4] mm/page_reporting: add PAGE_REPORTING_ORDER_UNSPECIFIED Yuvraj Sakshith
2026-03-02 14:57 ` David Hildenbrand (Arm)
2026-03-03 8:52 ` Yuvraj Sakshith [this message]
2026-03-02 11:17 ` [PATCH v2 2/4] virtio_balloon: set unspecified page reporting order Yuvraj Sakshith
2026-03-02 15:00 ` David Hildenbrand (Arm)
2026-03-02 11:17 ` [PATCH v2 3/4] hv_balloon: " Yuvraj Sakshith
2026-03-02 15:00 ` David Hildenbrand (Arm)
2026-03-02 11:17 ` [PATCH v2 4/4] mm/page_reporting: change PAGE_REPORTING_ORDER_UNSPECIFIED to -1 Yuvraj Sakshith
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=aaahWAWkXTS1lae+@hu-ysakshit-lv.qualcomm.com \
--to=yuvraj.sakshith@oss.qualcomm.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=decui@microsoft.com \
--cc=eperezma@redhat.com \
--cc=haiyangz@microsoft.com \
--cc=hannes@cmpxchg.org \
--cc=jackmanb@google.com \
--cc=jasowang@redhat.com \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lorenzo.stoakes@oracle.com \
--cc=mhocko@suse.com \
--cc=mst@redhat.com \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
--cc=vbabka@suse.cz \
--cc=virtualization@lists.linux.dev \
--cc=wei.liu@kernel.org \
--cc=xuanzhuo@linux.alibaba.com \
--cc=ziy@nvidia.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