qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/5 v2] convert system_powerdown command to notifiers
@ 2012-08-29 17:02 Igor Mammedov
  2012-08-29 17:02 ` [Qemu-devel] [PATCH 1/5] introduce powerdown_notifiers Igor Mammedov
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Igor Mammedov @ 2012-08-29 17:02 UTC (permalink / raw)
  To: peter.maydell, qemu-devel
  Cc: aliguori, mst, jan.kiszka, lcapitulino, blauwirbel,
	alex.williamson, kraxel, pbonzini

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.

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

git repo for testing:
    last 5 commits
    https://github.com/imammedo/qemu/tree/cpu_as_device.WIP

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

ps:
 reposting because I forgot to add qemu-devel address.
 
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 qemu_system_powerdown

 hw/acpi_piix4.c |  8 +++++---
 hw/nseries.c    | 14 +++++++++++++-
 hw/sun4m.c      | 14 +++++++++++++-
 sysemu.h        |  3 +--
 vl.c            | 18 ++++++++++++++----
 5 files changed, 46 insertions(+), 11 deletions(-)

-- 
1.7.11.4

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Qemu-devel] [PATCH 0/5 v3] convert system_powerdown command to notifiers
@ 2012-09-05 21:06 Igor Mammedov
  2012-09-05 21:06 ` [Qemu-devel] [PATCH 1/5] Introduce powerdown_notifiers Igor Mammedov
  0 siblings, 1 reply; 12+ messages in thread
From: Igor Mammedov @ 2012-09-05 21:06 UTC (permalink / raw)
  To: peter.maydell, qemu-devel
  Cc: aliguori, mst, jan.kiszka, lcapitulino, blauwirbel,
	alex.williamson, kraxel, pbonzini

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(-)

-- 
1.7.11.4

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

end of thread, other threads:[~2012-09-05 21:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-29 17:02 [Qemu-devel] [PATCH 0/5 v2] convert system_powerdown command to notifiers Igor Mammedov
2012-08-29 17:02 ` [Qemu-devel] [PATCH 1/5] introduce powerdown_notifiers Igor Mammedov
2012-08-29 17:06   ` Andreas Färber
2012-08-29 21:55     ` Igor Mammedov
2012-08-30  6:49     ` Igor Mammedov
2012-08-30  7:41       ` Paolo Bonzini
2012-08-30  8:17         ` Igor Mammedov
2012-08-29 17:02 ` [Qemu-devel] [PATCH 2/5] acpi: use notifier for signaling guest system_powerdown command Igor Mammedov
2012-08-29 17:02 ` [Qemu-devel] [PATCH 3/5] target-arm: " Igor Mammedov
2012-08-29 17:02 ` [Qemu-devel] [PATCH 4/5] target-sparc: " Igor Mammedov
2012-08-29 17:02 ` [Qemu-devel] [PATCH 5/5] cleanup unused qemu_system_powerdown Igor Mammedov
  -- strict thread matches above, loose matches on Subject: below --
2012-09-05 21:06 [Qemu-devel] [PATCH 0/5 v3] convert system_powerdown command to notifiers Igor Mammedov
2012-09-05 21:06 ` [Qemu-devel] [PATCH 1/5] Introduce powerdown_notifiers Igor Mammedov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).