Skip to content

Fix hgatp mode settings within kvm_riscv_gstage_vmid_detect

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 5 repliesIn review
  2. v21 patch 4 repliesSuperseded
  3. v11 patch 0 repliesSuperseded

Changes in v3 from the cover letter

- Add "Fixes" tag.
- Involve("RISC-V KVM: Remove unnecessary HGATP csr_read"), which depends on patch 1.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2RISC-V: KVM: Write hgatp register with valid mode bitsarch/riscv/kvm/vmid.c+2 -10 replies
2/2RISC-V KVM: Remove unnecessary HGATP csr_readarch/riscv/kvm/vmid.c+1 -45 replies

Reviews trailers per patch

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

PatchNutty LiuTroy MitchellGuo Ren
1/2R-b R-b R-b
2/2R-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 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] Fix hgatp mode settings within kvm_riscv_gstage_vmid_detect

From: Fangyu Yu <[email protected]>

According to the RISC-V Privileged Architecture Spec, when MODE=Bare is selected,software must write zero to the remaining fields of hgatp.

So,use a valid mode when detecting vmids of the HW supported,meanwhile remove unnecessary HGATP csr_read.

---
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) (1):
RISC-V KVM: Remove unnecessary HGATP csr_read

 arch/riscv/kvm/vmid.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
Signature · 1 line
2.49.0