mbox series

[kvm-unit-tests,0/3] riscv: Improve on-cpu and IPI support

Message ID 20240830101221.2202707-5-andrew.jones@linux.dev (mailing list archive)
Headers show
Series riscv: Improve on-cpu and IPI support | expand

Message

Andrew Jones Aug. 30, 2024, 10:12 a.m. UTC
The first two patches improve general library support for cpumasks and
the on-cpus API. on-cpus can now take cpumasks for input. The last patch
improves support for sending IPIs on riscv using the SBI IPI extension
by supporting a nicer interface of cpuids and cpumasks.

Andrew Jones (3):
  lib/cpumask: Fix and simplify a few functions
  lib/on-cpus: Introduce on_cpumask and on_cpumask_async
  riscv: Introduce SBI IPI convenience functions

 lib/cpumask.h       | 47 +++++++++++++++++----------------------------
 lib/on-cpus.c       | 35 +++++++++++++++++++++++++--------
 lib/on-cpus.h       |  3 +++
 lib/riscv/asm/sbi.h |  3 +++
 lib/riscv/sbi.c     | 43 +++++++++++++++++++++++++++++++++++++++++
 5 files changed, 94 insertions(+), 37 deletions(-)

Comments

Andrew Jones Sept. 3, 2024, 1:41 p.m. UTC | #1
On Fri, Aug 30, 2024 at 12:12:22PM GMT, Andrew Jones wrote:
> The first two patches improve general library support for cpumasks and
> the on-cpus API. on-cpus can now take cpumasks for input. The last patch
> improves support for sending IPIs on riscv using the SBI IPI extension
> by supporting a nicer interface of cpuids and cpumasks.
> 
> Andrew Jones (3):
>   lib/cpumask: Fix and simplify a few functions
>   lib/on-cpus: Introduce on_cpumask and on_cpumask_async
>   riscv: Introduce SBI IPI convenience functions
> 
>  lib/cpumask.h       | 47 +++++++++++++++++----------------------------
>  lib/on-cpus.c       | 35 +++++++++++++++++++++++++--------
>  lib/on-cpus.h       |  3 +++
>  lib/riscv/asm/sbi.h |  3 +++
>  lib/riscv/sbi.c     | 43 +++++++++++++++++++++++++++++++++++++++++
>  5 files changed, 94 insertions(+), 37 deletions(-)
> 
> -- 
> 2.45.2

Queued on riscv/sbi, https://gitlab.com/jones-drew/kvm-unit-tests/-/commits/riscv%2Fsbi