Skip to content

lib: sbi_ipi: Return error for invalid hartids

Andrew Jones opensbi 1 version Applied

Status from this message: Applied this series to the riscv/opensbi repo.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2sbi: Introduce sbi_hartmask_weightinclude/sbi/sbi_bitmap.h include/sbi/sbi_bitops.h include/sbi/sbi_hartmask.h+39 -72 replies
2/2lib: sbi_ipi: Return error for invalid hartidslib/sbi/sbi_ipi.c+9 -02 replies
2/2lib: sbi_ipi: Return error for invalid hartids+0 -03 replies
2/2lib: sbi_ipi: Return error for invalid hartids+0 -01 reply

Reviews trailers per patch

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

PatchAnup Patel
1/2R-b
2/2R-b
2/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] lib: sbi_ipi: Return error for invalid hartids

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(-)
Signature · 1 line
2.48.1