All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Minor fixes and improvements for Virtual IRQs
@ 2024-05-13 11:46 Rajnesh Kanwal
  2024-05-13 11:46 ` [PATCH 1/2] target/riscv: Extend virtual irq csrs masks to be 64 bit wide Rajnesh Kanwal
  2024-05-13 11:46 ` [PATCH 2/2] target/riscv: Move Guest irqs out of the core local irqs range Rajnesh Kanwal
  0 siblings, 2 replies; 5+ messages in thread
From: Rajnesh Kanwal @ 2024-05-13 11:46 UTC (permalink / raw)
  To: qemu-riscv, qemu-devel
  Cc: alistair.francis, bin.meng, liweiwei, dbarboza, zhiwei_liu,
	atishp, apatel, rkanwal

This series contains few miscellaneous fixes related to Virtual IRQs
and related code. The first patch changes CSR mask widths to 64bit
as AIA introduces half CSRs in case of 32bit systems.

Second patch fixes guest and core local IRQ overlap. Qemu creates
a single IRQ range which is shared between core local interrupts
and guests in riscv_cpu_init(). Even though, in the current state
there is no device generating interrupts in the 13:63 range, and
virtual IRQ logic in Qemu also doesn't go through riscv_cpu_set_irq()
path, it's better to keep local and guest range separate to avoid
confusion and any future issues.

Patches can be found here on github:
https://github.com/rajnesh-kanwal/qemu/tree/dev/rkanwal/irq_fixes

Signed-off-by: Rajnesh Kanwal <rkanwal@rivosinc.com>
---
Rajnesh Kanwal (2):
  target/riscv: Extend virtual irq csrs masks to be 64 bit wide.
  target/riscv: Move Guest irqs out of the core local irqs range.

 target/riscv/cpu_bits.h |  3 ++-
 target/riscv/csr.c      | 21 +++++++++++++--------
 2 files changed, 15 insertions(+), 9 deletions(-)
---
base-commit: 09d8c49f23e9a130593984d5c8cf048bdd76f73e
-- 
Regards,
Rajnesh Kanwal


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

end of thread, other threads:[~2024-05-18 13:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-13 11:46 [PATCH 0/2] Minor fixes and improvements for Virtual IRQs Rajnesh Kanwal
2024-05-13 11:46 ` [PATCH 1/2] target/riscv: Extend virtual irq csrs masks to be 64 bit wide Rajnesh Kanwal
2024-05-18 12:55   ` Daniel Henrique Barboza
2024-05-13 11:46 ` [PATCH 2/2] target/riscv: Move Guest irqs out of the core local irqs range Rajnesh Kanwal
2024-05-18 13:04   ` Daniel Henrique Barboza

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.