target/riscv/kvm: CSR related fixes
Status from this message: Applied to riscv-to-apply.next
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest9 patches 6 repliesApplied
- v49 patches 3 repliesSuperseded
- v39 patches 9 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 9 patches | 10 replies | Superseded | |
| v1 | 7 patches | 10 replies | Superseded |
Changes in v5 from the cover letter
- patch 8:
- remove the 'reg32' variable and add an uint32_t cast when passing
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | target/riscv/kvm: minor fixes/tweakstarget/ | +14 | 0 replies | |
| 2/9 | target/riscv/kvm: fix leak in kvm_riscv_init_multiext_cfg()target/ | +1 | 0 replies | |
| 3/9 | target/riscv/kvm: turn u32/u64 reg functions into macrostarget/ | +9 | 0 replies | |
| 4/9 | target/riscv/kvm: turn kvm_riscv_reg_id_ulong() into a macrotarget/ | +41 | 0 replies | |
| 5/9 | target/riscv/kvm: add kvm_csr_cfgs[]target/ target/ | +86 | 0 replies | |
| 6/9 | target/riscv/kvm: do not read unavailable CSRstarget/ | +59 | 1 reply | |
| 7/9 | target/riscv/kvm: add senvcfg CSRtarget/ | +2 | 1 reply | |
| 8/9 | target/riscv/kvm: read/write KVM regs via env sizetarget/ | +7 | 2 replies | |
| 9/9 | target/riscv/kvm: add scounteren CSRtarget/ | +2 | 1 reply |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by.
| Patch | Andrew Jones | Alistair Francis |
|---|---|---|
| 1/9 | R-b | R-b |
| 2/9 | R-b | R-b |
| 3/9 | R-b | R-b |
| 4/9 | R-b | R-b |
| 5/9 | R-b | A-b |
| 6/9 | R-b | A-b |
| 7/9 | R-b | A-b |
| 8/9 | R-b | R-b |
| 9/9 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/9] target/riscv/kvm: CSR related fixes
Hi,
This version has a fix on patch 8 where I did use an extra variable and happened to set the wrong mask too.
We'll let the compiler cast the uint32_t from an uint64_t reg. A cast was added for extra clarity when reading the code, although some picky toolchains might require an explicit cast in this case too.
No other changes made.
Patches missing acks/reviews: patch 8.
Changes from v4:
- patch 8:
- remove the 'reg32' variable and add an uint32_t cast when passing
the uint64_t var 'reg' to kvm_cpu_csr_set_u32()
- v4 link: https://lore.kernel.org/qemu-riscv/[email protected]/
Daniel Henrique Barboza (9):
target/riscv/kvm: minor fixes/tweaks target/riscv/kvm: fix leak in kvm_riscv_init_multiext_cfg() target/riscv/kvm: turn u32/u64 reg functions into macros target/riscv/kvm: turn kvm_riscv_reg_id_ulong() into a macro target/riscv/kvm: add kvm_csr_cfgs[] target/riscv/kvm: do not read unavailable CSRs target/riscv/kvm: add senvcfg CSR target/riscv/kvm: read/write KVM regs via env size target/riscv/kvm: add scounteren CSR
target/riscv/cpu.h | 1 + target/riscv/kvm/kvm-cpu.c | 333 +++++++++++++++++++++++-------------- 2 files changed, 212 insertions(+), 122 deletions(-)
Signature · 1 line
2.49.0