All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Register reset interface with hot-add CPUs
@ 2025-09-03  2:35 Bibo Mao
  2025-09-03  2:35 ` [PATCH v3 1/3] hw/loongarch/virt: Add BSP support with aux boot code Bibo Mao
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Bibo Mao @ 2025-09-03  2:35 UTC (permalink / raw)
  To: Song Gao
  Cc: Philippe Mathieu-Daudé, Peter Maydell, Xianglai Li,
	Igor Mammedov, qemu-devel

With cpu hotplug is implemented on LoongArch virt machine, reset
interface with hot-added CPU should be registered. Otherwise there
will be problem if system reboots after cpu is hot-added.

Also there is cleanup when system directly boot from Linux kernel image,
both BSP and APs boots from aux boot code, so that special reset
callback with BSP is not necessary.

---
v2 ... v3:
  1. Add BSP core boot support from aux boot code.
  2. Remove unnecessay pre-boot setting with BSP core.
  3. Use qemu_register_resettable() API rather than legacy API
     qemu_register_reset() to register reset interface.

v1 ... v2:
  1. Add qemu_unregister_reset() in function loongarch_cpu_unrealizefn(),
     remove reset callback if vCPU is unrealized.
---
Bibo Mao (3):
  hw/loongarch/virt: Add BSP support with aux boot code
  hw/loongarch/virt: Remove unnecessay pre-boot setting with BSP
  hw/loongarch/virt: Register reset interface with CPU object

 hw/loongarch/boot.c    | 71 ++++++++++++++++++++----------------------
 target/loongarch/cpu.c |  4 +++
 target/loongarch/cpu.h |  4 ---
 3 files changed, 38 insertions(+), 41 deletions(-)


base-commit: 91589bcd9fee0e66b241d04e5f37cd4f218187a2
-- 
2.39.3



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

end of thread, other threads:[~2025-09-05  1:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-03  2:35 [PATCH v3 0/3] Register reset interface with hot-add CPUs Bibo Mao
2025-09-03  2:35 ` [PATCH v3 1/3] hw/loongarch/virt: Add BSP support with aux boot code Bibo Mao
2025-09-03  2:35 ` [PATCH v3 2/3] hw/loongarch/virt: Remove unnecessay pre-boot setting with BSP Bibo Mao
2025-09-03  2:35 ` [PATCH v3 3/3] hw/loongarch/virt: Register reset interface with CPU object Bibo Mao
2025-09-04  8:13   ` Igor Mammedov
2025-09-04 11:55     ` Bibo Mao
2025-09-04 14:08       ` Igor Mammedov
2025-09-05  0:57         ` Bibo Mao

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.