Skip to content

convert system_powerdown command to notifiers

Igor Mammedov qemu-devel qemu-trivial 2 versions – Applied

Status from this message: Applied. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 5 repliesApplied
  2. v25 patches 5 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5Introduce powerdown_notifierssysemu.h vl.c+9 -00 replies
2/5acpi: use notifier for signaling guest system_powerdown commandhw/acpi_piix4.c+5 -30 replies
3/5target-arm: use notifier for signaling guest system_powerdown commandhw/nseries.c+13 -11 reply
4/5target-sparc: use notifier for signaling guest system_powerdown commandhw/sun4m.c+13 -10 replies
5/5Cleanup unused global var qemu_system_powerdownsysemu.h vl.c+7 -60 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPaolo BonziniPeter Maydell
SeriesR-b
1/5
2/5
3/5A-b
4/5
5/5

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH 0/5 v3] convert system_powerdown command to notifiers

global variable qemu_system_powerdown in sysemu.h is the only dep for qemu_irq and qemu_rise_irq is not a generic way to signal guest that it should shutdown.

replace it by notifiers and allow each implementation to have it's own way to notify guest.

git repo for testing:
https://github.com/imammedo/qemu/tree/shutdown_notifier.v3

compile tested:
target-list=x86_64-linux-user,x86_64-softmmu,sparc-softmmu,arm-softmmu
runtime tested:
x86_64-softmmu + win7 guest

v3-v2:
- fixed bisectably issues of series
- make series independed of cpu_as_device series

Igor Mammedov (5):
Introduce powerdown_notifiers
acpi: use notifier for signaling guest system_powerdown command
target-arm: use notifier for signaling guest system_powerdown command
target-sparc: use notifier for signaling guest system_powerdown
command
Cleanup unused global var qemu_system_powerdown

 hw/acpi_piix4.c |  8 +++++---
 hw/nseries.c    | 14 +++++++++++++-
 hw/sun4m.c      | 14 +++++++++++++-
 sysemu.h        |  2 +-
 vl.c            | 18 ++++++++++++++----
 5 files changed, 46 insertions(+), 10 deletions(-)
Signature · 1 line
1.7.11.4