mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: James Morris <jmorris@namei.org>
To: Yangyu Chen <cyy@cyyself.name>
Cc: anup@brainfault.org, atish.patra@linux.dev, pjw@kernel.org,
	 palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr,
	 kvm@vger.kernel.org, kvm-riscv@lists.infradead.org,
	 linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
	 stable@vger.kernel.org, Jason Montleon <jmontleo@redhat.com>
Subject: Re: [PATCH] RISC-V: KVM: Fix G-stage page table memory leak on VM destroy
Date: Sun, 8 Nov 2026 23:50:16 -0800 (PST)	[thread overview]
Message-ID: <81ddd9e-791-9ca-3f3-f8381c785cd@namei.org> (raw)
In-Reply-To: <tencent_C8B170AF63DC42F81A47F9EA044BB4B11C09@qq.com>

On Sat, 31 Oct 2026, Yangyu Chen wrote:

> Fixes: 9d05c1fee837 ("RISC-V: KVM: Implement stage2 page table programming")
> Cc: stable@vger.kernel.org
> Signed-off-by: Yangyu Chen <cyy@cyyself.name>

Tested-by: James Morris <jmorris@namei.org>

Assisted by an LLM.

On a SpacemiT K3 CoM260 host (Sv39x4), a native port of your reproducer 
showed about 16 MiB lost per VM on Fedora's 7.3.1 kernel. With the same 
source rebuilt with this patch, each run averaged under 0.1 MiB lost per 
VM (130 measured VMs total), consistent with noise. Both figures count 
free pages held on the per-CPU lists as free.


-- 
James Morris
<jmorris@namei.org>


  reply	other threads:[~2026-11-09  7:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 18:58 Yangyu Chen
2026-11-09  7:50 ` James Morris [this message]
2026-11-13 12:16 ` Anup Patel
2026-11-13 13:18   ` Yangyu Chen

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=81ddd9e-791-9ca-3f3-f8381c785cd@namei.org \
    --to=jmorris@namei.org \
    --cc=alex@ghiti.fr \
    --cc=anup@brainfault.org \
    --cc=aou@eecs.berkeley.edu \
    --cc=atish.patra@linux.dev \
    --cc=cyy@cyyself.name \
    --cc=jmontleo@redhat.com \
    --cc=kvm-riscv@lists.infradead.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=stable@vger.kernel.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

all inboxes | Powered by JetHome®