]> git.proxmox.com Git - mirror_qemu.git/commit - hw/mips/boston.c
shutdown: Add source information to SHUTDOWN and RESET
authorEric Blake <eblake@redhat.com>
Mon, 15 May 2017 21:41:13 +0000 (16:41 -0500)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 23 May 2017 11:28:17 +0000 (13:28 +0200)
commitcf83f140059f21d4629ae4b61d468c3baef2bb4c
tree4c39ace51dc5ca17a6a3edf9800844b08b55ab1f
parent802f045a5f61b781df55e4492d896b4d20503ba7
shutdown: Add source information to SHUTDOWN and RESET

Time to wire up all the call sites that request a shutdown or
reset to use the enum added in the previous patch.

It would have been less churn to keep the common case with no
arguments as meaning guest-triggered, and only modified the
host-triggered code paths, via a wrapper function, but then we'd
still have to audit that I didn't miss any host-triggered spots;
changing the signature forces us to double-check that I correctly
categorized all callers.

Since command line options can change whether a guest reset request
causes an actual reset vs. a shutdown, it's easy to also add the
information to reset requests.

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au> [ppc parts]
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> [SPARC part]
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> [s390x parts]
Message-Id: <20170515214114.15442-5-eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
60 files changed:
hw/acpi/core.c
hw/arm/highbank.c
hw/arm/integratorcp.c
hw/arm/musicpal.c
hw/arm/omap1.c
hw/arm/omap2.c
hw/arm/spitz.c
hw/arm/stellaris.c
hw/arm/tosa.c
hw/i386/pc.c
hw/i386/xen/xen-hvm.c
hw/input/pckbd.c
hw/ipmi/ipmi.c
hw/isa/lpc_ich9.c
hw/mips/boston.c
hw/mips/mips_malta.c
hw/mips/mips_r4k.c
hw/misc/arm_sysctl.c
hw/misc/cbus.c
hw/misc/macio/cuda.c
hw/misc/slavio_misc.c
hw/misc/zynq_slcr.c
hw/pci-host/apb.c
hw/pci-host/bonito.c
hw/pci-host/piix.c
hw/ppc/e500.c
hw/ppc/mpc8544_guts.c
hw/ppc/ppc.c
hw/ppc/ppc405_uc.c
hw/ppc/spapr_hcall.c
hw/ppc/spapr_rtas.c
hw/s390x/ipl.c
hw/sh4/r2d.c
hw/timer/etraxfs_timer.c
hw/timer/m48t59.c
hw/timer/milkymist-sysctl.c
hw/timer/pxa2xx_timer.c
hw/watchdog/watchdog.c
hw/xenpv/xen_domainbuild.c
hw/xtensa/xtfpga.c
include/sysemu/sysemu.h
kvm-all.c
os-win32.c
qmp.c
replay/replay.c
target/alpha/sys_helper.c
target/arm/psci.c
target/i386/excp_helper.c
target/i386/hax-all.c
target/i386/helper.c
target/i386/kvm.c
target/s390x/helper.c
target/s390x/kvm.c
target/s390x/misc_helper.c
target/sparc/int32_helper.c
trace-events
ui/cocoa.m
ui/sdl.c
ui/sdl2.c
vl.c