kvm-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V4 RESEND 0/3] Fixup & optimize hgatp mode & vmid detect functions
@ 2025-08-21 14:25 guoren
  2025-08-21 14:25 ` [PATCH V4 RESEND 1/3] RISC-V: KVM: Write hgatp register with valid mode bits guoren
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: guoren @ 2025-08-21 14:25 UTC (permalink / raw)
  To: guoren, troy.mitchell
  Cc: alex, anup, aou, atish.patra, fangyu.yu, guoren, kvm-riscv, kvm,
	linux-kernel, linux-riscv, palmer, paul.walmsley

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


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-09-04  3:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-21 14:25 [PATCH V4 RESEND 0/3] Fixup & optimize hgatp mode & vmid detect functions guoren
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-04  3:08 ` [PATCH V4 RESEND 0/3] Fixup & optimize hgatp mode & vmid detect functions Guo Ren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).