Skip to content

Fixup & optimize hgatp mode & vmid detect functions

[email protected] kvm kvm-riscv linux-riscv lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/23 patches 4 repliesIn review
  2. v4 posting 1/23 patches 0 repliesSuperseded

Changes in v4 from the cover letter

- 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.

Patches in v4 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3RISC-V: KVM: Write hgatp register with valid mode bitsarch/riscv/kvm/vmid.c+2 -10 replies
2/3RISC-V: KVM: Remove unnecessary HGATP csr_readarch/riscv/kvm/vmid.c+1 -40 replies
3/3RISC-V: KVM: Prevent HGATP_MODE_BARE passedarch/riscv/kvm/gstage.c arch/riscv/kvm/main.c+41 -212 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchNutty LiuTroy MitchellGuo Ren (Alibaba DAMO Academy)Fangyu Yu
1/3R-b R-b R-b
2/3R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH V4 RESEND 0/3] Fixup & optimize hgatp mode & vmid detect functions

From: "Guo Ren (Alibaba DAMO Academy)" <[email protected]>

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(-)
Signature · 1 line
2.40.1