All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] lib: sbi_ipi: Return error for invalid hartids
@ 2025-03-14 16:30 Andrew Jones
  2025-03-14 16:30 ` [PATCH 1/2] sbi: Introduce sbi_hartmask_weight Andrew Jones
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Andrew Jones @ 2025-03-14 16:30 UTC (permalink / raw)
  To: opensbi

Add sbi_hartmask_weight() and use it to check for invalid hartids
in SBI IPI. Fixes a bug found with the kvm-unit-tests SBI tests.

Andrew Jones (2):
  sbi: Introduce sbi_hartmask_weight
  lib: sbi_ipi: Return error for invalid hartids

 include/sbi/sbi_bitmap.h   | 13 +++++++++++++
 include/sbi/sbi_bitops.h   | 22 +++++++++++++++-------
 include/sbi/sbi_hartmask.h | 11 +++++++++++
 lib/sbi/sbi_ipi.c          |  9 +++++++++
 4 files changed, 48 insertions(+), 7 deletions(-)

-- 
2.48.1



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

end of thread, other threads:[~2025-04-14 10:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-14 16:30 [PATCH 0/2] lib: sbi_ipi: Return error for invalid hartids Andrew Jones
2025-03-14 16:30 ` [PATCH 1/2] sbi: Introduce sbi_hartmask_weight Andrew Jones
2025-03-16  6:26   ` Anup Patel
2025-03-16  6:46   ` Xiang W
2025-03-14 16:30 ` [PATCH 2/2] lib: sbi_ipi: Return error for invalid hartids Andrew Jones
2025-03-15  4:19   ` Xiang W
2025-03-15 10:50     ` Andrew Jones
2025-03-15 11:19       ` Anup Patel
2025-03-16  6:29         ` Anup Patel
2025-03-16  6:45       ` Xiang W
2025-03-17  4:56   ` Xiang W
2025-03-17  8:45     ` Andrew Jones
2025-03-17 10:27       ` Xiang W
2025-04-14 10:01 ` [PATCH 0/2] " Anup Patel

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.