From: guoren@kernel.org
To: guoren@kernel.org, troy.mitchell@linux.dev
Cc: alex@ghiti.fr, anup@brainfault.org, aou@eecs.berkeley.edu,
atish.patra@linux.dev, fangyu.yu@linux.alibaba.com,
guoren@linux.alibaba.com, kvm-riscv@lists.infradead.org,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org, palmer@dabbelt.com,
paul.walmsley@sifive.com
Subject: [PATCH V4 RESEND 0/3] Fixup & optimize hgatp mode & vmid detect functions
Date: Thu, 21 Aug 2025 10:25:39 -0400 [thread overview]
Message-ID: <20250821142542.2472079-1-guoren@kernel.org> (raw)
From: "Guo Ren (Alibaba DAMO Academy)" <guoren@kernel.org>
Here are serval fixup & optmizitions for hgatp detect according
to the RISC-V Privileged Architecture Spec.
---
Changes in v4:
- Involve ("RISC-V: KVM: Prevent HGATP_MODE_BARE passed"), which
explain why gstage_mode_detect needs reset HGATP to zero.
- RESEND for wrong mailing thread.
Changes in v3:
- Add "Fixes" tag.
- Involve("RISC-V: KVM: Remove unnecessary HGATP csr_read"), which
depends on patch 1.
Changes in v2:
- Fixed build error since kvm_riscv_gstage_mode() has been modified.
---
Fangyu Yu (1):
RISC-V: KVM: Write hgatp register with valid mode bits
Guo Ren (Alibaba DAMO Academy) (2):
RISC-V: KVM: Remove unnecessary HGATP csr_read
RISC-V: KVM: Prevent HGATP_MODE_BARE passed
arch/riscv/kvm/gstage.c | 27 ++++++++++++++++++++++++---
arch/riscv/kvm/main.c | 35 +++++++++++++++++------------------
arch/riscv/kvm/vmid.c | 8 +++-----
3 files changed, 44 insertions(+), 26 deletions(-)
--
2.40.1
next reply other threads:[~2025-08-21 14:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 14:25 guoren [this message]
2025-08-21 14:25 ` [PATCH V4 RESEND 1/3] RISC-V: KVM: Write hgatp register with valid mode bits guoren
2025-08-21 14:25 ` [PATCH V4 RESEND 2/3] RISC-V: KVM: Remove unnecessary HGATP csr_read guoren
2025-08-21 14:25 ` [PATCH V4 RESEND 3/3] RISC-V: KVM: Prevent HGATP_MODE_BARE passed guoren
2025-09-05 6:51 ` Anup Patel
2025-09-05 9:24 ` Guo Ren
2025-09-04 3:08 ` [PATCH V4 RESEND 0/3] Fixup & optimize hgatp mode & vmid detect functions Guo Ren
2025-09-05 6:51 ` Anup Patel
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=20250821142542.2472079-1-guoren@kernel.org \
--to=guoren@kernel.org \
--cc=alex@ghiti.fr \
--cc=anup@brainfault.org \
--cc=aou@eecs.berkeley.edu \
--cc=atish.patra@linux.dev \
--cc=fangyu.yu@linux.alibaba.com \
--cc=guoren@linux.alibaba.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=paul.walmsley@sifive.com \
--cc=troy.mitchell@linux.dev \
/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