diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-01-11 16:20:20 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-03-09 23:13:57 +0100 |
commit | 538f049704e9b7a07eeaf326af772fdd30d89576 (patch) | |
tree | a526a5fe441343bfa49001357e65ae9028e9a7e4 /hw/i386/kvmvapic.c | |
parent | 0a38950931af0088449a6f224809acd0214d9d27 (diff) | |
download | qemu-538f049704e9b7a07eeaf326af772fdd30d89576.zip qemu-538f049704e9b7a07eeaf326af772fdd30d89576.tar.gz qemu-538f049704e9b7a07eeaf326af772fdd30d89576.tar.bz2 |
sysemu: Let VMChangeStateHandler take boolean 'running' argument
The 'running' argument from VMChangeStateHandler does not require
other value than 0 / 1. Make it a plain boolean.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20210111152020.1422021-3-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/i386/kvmvapic.c')
-rw-r--r-- | hw/i386/kvmvapic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c index 2c18980..4631544 100644 --- a/hw/i386/kvmvapic.c +++ b/hw/i386/kvmvapic.c @@ -748,7 +748,7 @@ static void do_vapic_enable(CPUState *cs, run_on_cpu_data data) s->state = VAPIC_ACTIVE; } -static void kvmvapic_vm_state_change(void *opaque, int running, +static void kvmvapic_vm_state_change(void *opaque, bool running, RunState state) { MachineState *ms = MACHINE(qdev_get_machine()); |