All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Radim Krčmář" <rkrcmar@ventanamicro.com>
To: "Wu Fei" <atwufei@163.com>, "Andrew Jones" <ajones@ventanamicro.com>
Cc: <wu.fei9@sanechips.com.cn>, <kvm-riscv@lists.infradead.org>,
	"kvm-riscv" <kvm-riscv-bounces@lists.infradead.org>
Subject: Re: [PATCH 2/2] KVM: riscv: selftests: Detect supported vm modes
Date: Fri, 24 Oct 2025 17:59:01 +0200	[thread overview]
Message-ID: <DDQODLNQSLO3.E5HMVVMXWDVN@ventanamicro.com> (raw)
In-Reply-To: <7aa181d9-84fe-41e1-af6e-14a3ad6629ef@163.com>

2025-10-24T21:48:01+08:00, Wu Fei <atwufei@163.com>:
> On 10/22/25 22:26, Radim Krčmář wrote:
>> For tests that that don't care about physical width, we could
>> add:
>> 
>>    VM_MODE_PXXV39_4K
>
> Intel adds VM_MODE_PXXV48_4K because "x86_64 machines are having various 
> physical address width rather than some static values" according to 
> commit 567a9f1e9de, and x86 has to probe the real gpa width on vm 
> creation. RISC-V has 3 fixed gpa widths, so maybe we can use the 
> explicit widths?

Makes sense.

>> It doesn't seem necessary to support more than that, but if our tests
>> want larger virtual address space, we can add V48 and V57 variants.
>
> I think V48/V57 is necessary, if a machine is designed to have SV48 
> guests, it's better to test it.

Right.  We also get information about available guest satp modes from
KVM, so we ought to test that it was correct.

> So is it okay to have the combination of all 9 modes?
> 	P(41, 50, 56) x V(39, 48, 57)
> But only several ones are picked up for a specific machine, just as 
> mentioned above, we won't select P41V39 for Sv48x4 etc.

Sounds good, thanks.

-- 
kvm-riscv mailing list
kvm-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kvm-riscv

      reply	other threads:[~2025-10-24 15:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20251017110908650RWBl7sDIk6WUGhkvJSH4L@zte.com.cn>
2025-10-17  3:13 ` [PATCH 1/2] KVM: riscv: selftests: Add riscv vm satp modes wu.fei9
2025-10-17 15:38   ` Andrew Jones
2025-10-20 13:09     ` Wu Fei
2025-10-21 23:35       ` Andrew Jones
2025-10-17  3:15 ` [PATCH 2/2] KVM: riscv: selftests: Detect supported vm modes wu.fei9
2025-10-17 16:04   ` Andrew Jones
2025-10-20 13:26     ` Wu Fei
2025-10-20 19:32       ` Radim Krčmář
2025-10-21 23:55         ` Andrew Jones
2025-10-22 13:13           ` Wu Fei
2025-10-22 14:26             ` Radim Krčmář
2025-10-24 13:48               ` Wu Fei
2025-10-24 15:59                 ` Radim Krčmář [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=DDQODLNQSLO3.E5HMVVMXWDVN@ventanamicro.com \
    --to=rkrcmar@ventanamicro.com \
    --cc=ajones@ventanamicro.com \
    --cc=atwufei@163.com \
    --cc=kvm-riscv-bounces@lists.infradead.org \
    --cc=kvm-riscv@lists.infradead.org \
    --cc=wu.fei9@sanechips.com.cn \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.