mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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>
This commit is contained in:
parent
0a38950931
commit
538f049704
41 changed files with 49 additions and 43 deletions
|
@ -38,7 +38,7 @@ const KVMCapabilityInfo kvm_arch_required_capabilities[] = {
|
|||
KVM_CAP_LAST_INFO
|
||||
};
|
||||
|
||||
static void kvm_mips_update_state(void *opaque, int running, RunState state);
|
||||
static void kvm_mips_update_state(void *opaque, bool running, RunState state);
|
||||
|
||||
unsigned long kvm_arch_vcpu_id(CPUState *cs)
|
||||
{
|
||||
|
@ -553,7 +553,7 @@ static int kvm_mips_restore_count(CPUState *cs)
|
|||
/*
|
||||
* Handle the VM clock being started or stopped
|
||||
*/
|
||||
static void kvm_mips_update_state(void *opaque, int running, RunState state)
|
||||
static void kvm_mips_update_state(void *opaque, bool running, RunState state)
|
||||
{
|
||||
CPUState *cs = opaque;
|
||||
int ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue