Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Leonardo Bras <leo.bras@arm.com>
To: Usama Arif <usama.arif@linux.dev>
Cc: Leonardo Bras <leo.bras@arm.com>,
	ljs@kernel.org, maz@kernel.org, oupton@kernel.org,
	fuad.tabba@linux.dev, joey.gouly@arm.com, seiden@linux.ibm.com,
	suzuki.poulose@arm.com, yuzenghui@huawei.com,
	catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com,
	kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, riel@surriel.com,
	shakeel.butt@linux.dev, kernel-team@meta.com, rkeilty@meta.com,
	atish.patra@linux.dev, dgreid@meta.com
Subject: Re: [PATCH v2] KVM: arm64: Size the stage-2 memcache from kvm_mmu_cache_min_pages()
Date: Tue,  1 Dec 2026 18:19:42 +0000	[thread overview]
Message-ID: <aw8PvUkTjrYv5dlq@LeoBrasDK> (raw)
In-Reply-To: <aw7BnXVknDuMjEFD@LeoBrasDK>

On Tue, Dec 01, 2026 at 12:46:22PM +0000, Leonardo Bras wrote:
> On Mon, Nov 30, 2026 at 08:05:32PM +0000, Usama Arif wrote:
[...]
> > >> I tried your MULTIPLIER * min_pages version under QEMU with
> > >> kvm-arm.mode=nested: 4K pages, an IPA limit of 52 bits, and a 40-bit
> > >> IPA VM whose L1 runs an L2. In all six runs, across two tests, L2's
> > >> first fault that needs a refill hits that WARN_ON_ONCE() and KVM_RUN
> > >> fails with EIO.
> > > 
> > > Out of curiosity, is it fully KVM, or are you using QEMU to emulate a 
> > > 4k-pagesize host?
> > 
> > 
> > QEMU emulates the host. I don't have hardware with FEAT_NV2, so L0 is a
> > 4K kernel booted with kvm-arm.mode=nested in qemu-system-aarch64 with
> > TCG (-cpu max, virtualization=on). Only the NV tests ran that way,
> > the numbers above are from the Grace host.
> > 
> 
> Ah, I see your point.
> The issue is that QEMU TCG is not really great for gathering performance 
> numbers :(
> 
> I can try running the tests for you in a NV2-enabled machine, if that's ok 
> :)
> 

Humm, but again, why do you need NV2? That path is tested on both 
user_mem_abort and gmem_abort, it could easily be tested by replacing the 
host kernel.

Do you have any limitation replacing the host kernel?

Thanks!
Leo


      reply	other threads:[~2026-12-01 18:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 14:30 [PATCH v2] KVM: arm64: Size the stage-2 memcache from kvm_mmu_cache_min_pages() Usama Arif
2026-11-30 15:26 ` Leonardo Bras
2026-11-30 17:31   ` Usama Arif
2026-11-30 18:29     ` Leonardo Bras
2026-11-30 20:05       ` Usama Arif
2026-12-01 12:46         ` Leonardo Bras
2026-12-01 18:19           ` Leonardo Bras [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=aw8PvUkTjrYv5dlq@LeoBrasDK \
    --to=leo.bras@arm.com \
    --cc=atish.patra@linux.dev \
    --cc=catalin.marinas@arm.com \
    --cc=dgreid@meta.com \
    --cc=fuad.tabba@linux.dev \
    --cc=joey.gouly@arm.com \
    --cc=kernel-team@meta.com \
    --cc=kvmarm@lists.linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ljs@kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=maz@kernel.org \
    --cc=oupton@kernel.org \
    --cc=riel@surriel.com \
    --cc=rkeilty@meta.com \
    --cc=seiden@linux.ibm.com \
    --cc=shakeel.butt@linux.dev \
    --cc=suzuki.poulose@arm.com \
    --cc=usama.arif@linux.dev \
    --cc=will@kernel.org \
    --cc=yuzenghui@huawei.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