qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/9] target/riscv/kvm: CSR related fixes
@ 2025-04-29 12:44 Daniel Henrique Barboza
  2025-04-29 12:44 ` [PATCH v5 1/9] target/riscv/kvm: minor fixes/tweaks Daniel Henrique Barboza
                   ` (9 more replies)
  0 siblings, 10 replies; 16+ messages in thread
From: Daniel Henrique Barboza @ 2025-04-29 12:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, ajones, Daniel Henrique Barboza

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/20250428192323.84992-1-dbarboza@ventanamicro.com/

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(-)

-- 
2.49.0



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

end of thread, other threads:[~2025-04-30 23:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-29 12:44 [PATCH v5 0/9] target/riscv/kvm: CSR related fixes Daniel Henrique Barboza
2025-04-29 12:44 ` [PATCH v5 1/9] target/riscv/kvm: minor fixes/tweaks Daniel Henrique Barboza
2025-04-29 12:44 ` [PATCH v5 2/9] target/riscv/kvm: fix leak in kvm_riscv_init_multiext_cfg() Daniel Henrique Barboza
2025-04-29 12:44 ` [PATCH v5 3/9] target/riscv/kvm: turn u32/u64 reg functions into macros Daniel Henrique Barboza
2025-04-29 12:44 ` [PATCH v5 4/9] target/riscv/kvm: turn kvm_riscv_reg_id_ulong() into a macro Daniel Henrique Barboza
2025-04-29 12:44 ` [PATCH v5 5/9] target/riscv/kvm: add kvm_csr_cfgs[] Daniel Henrique Barboza
2025-04-29 12:44 ` [PATCH v5 6/9] target/riscv/kvm: do not read unavailable CSRs Daniel Henrique Barboza
2025-04-30 23:15   ` Alistair Francis
2025-04-29 12:44 ` [PATCH v5 7/9] target/riscv/kvm: add senvcfg CSR Daniel Henrique Barboza
2025-04-30 23:16   ` Alistair Francis
2025-04-29 12:44 ` [PATCH v5 8/9] target/riscv/kvm: read/write KVM regs via env size Daniel Henrique Barboza
2025-04-29 15:01   ` Andrew Jones
2025-04-30 23:18   ` Alistair Francis
2025-04-29 12:44 ` [PATCH v5 9/9] target/riscv/kvm: add scounteren CSR Daniel Henrique Barboza
2025-04-30 23:18   ` Alistair Francis
2025-04-30 23:41 ` [PATCH v5 0/9] target/riscv/kvm: CSR related fixes Alistair Francis

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