public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Jones <andrew.jones@linux.dev>
To: kvm@vger.kernel.org, kvm-riscv@lists.infradead.org
Cc: atishp@rivosinc.com, jamestiotio@gmail.com
Subject: [kvm-unit-tests PATCH 0/4] riscv: A few SMP fixes
Date: Wed, 23 Oct 2024 15:21:31 +0200	[thread overview]
Message-ID: <20241023132130.118073-6-andrew.jones@linux.dev> (raw)

tl;dr - these patches are improvement to the riscv framework to better
support the SBI HSM tests.

The first patch is a simpler alternative to [1] and [2] which doesn't
require us to decide how best to make the number configurable. The
second patch just adds sanity checking to make sure we can expect the
SBI implementation to accept all hartids mapped from the present mask.
The third patch was already posted once before[3] with a slightly
different summary. It and the last patch improve smp_boot_secondary()
since the SBI HSM tests were attempting to make workarounds for odd
behaviors.

[1] https://lore.kernel.org/all/20240820170150.377580-2-andrew.jones@linux.dev/
[2] https://lore.kernel.org/all/20240903143946.834864-6-andrew.jones@linux.dev/
[3] https://lore.kernel.org/all/20240904120812.1798715-2-andrew.jones@linux.dev/

Andrew Jones (4):
  riscv: Bump NR_CPUS to 256
  riscv: Filter unmanaged harts from present mask
  riscv: Fix secondary_entry
  riscv: Rework smp_boot_secondary

 lib/riscv/asm/processor.h |  1 +
 lib/riscv/asm/setup.h     |  2 +-
 lib/riscv/setup.c         | 11 ++++++---
 lib/riscv/smp.c           | 49 +++++++++++++++++++++++++++------------
 riscv/cstart.S            |  7 +++---
 5 files changed, 48 insertions(+), 22 deletions(-)

-- 
2.47.0


             reply	other threads:[~2024-10-23 13:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-23 13:21 Andrew Jones [this message]
2024-10-23 13:21 ` [kvm-unit-tests PATCH 1/4] riscv: Bump NR_CPUS to 256 Andrew Jones
2024-10-23 13:21 ` [kvm-unit-tests PATCH 2/4] riscv: Filter unmanaged harts from present mask Andrew Jones
2024-10-23 13:21 ` [kvm-unit-tests PATCH 3/4] riscv: Fix secondary_entry Andrew Jones
2024-10-23 13:21 ` [kvm-unit-tests PATCH 4/4] riscv: Rework smp_boot_secondary Andrew Jones
2024-11-11 14:37 ` [kvm-unit-tests PATCH 0/4] riscv: A few SMP fixes Andrew Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241023132130.118073-6-andrew.jones@linux.dev \
    --to=andrew.jones@linux.dev \
    --cc=atishp@rivosinc.com \
    --cc=jamestiotio@gmail.com \
    --cc=kvm-riscv@lists.infradead.org \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox