Skip to content
Snippets Groups Projects
Commit 1dfb4dd9 authored by Luiz Capitulino's avatar Luiz Capitulino
Browse files

Replace the VMSTOP macros with a proper state type


Today, when notifying a VM state change with vm_state_notify(),
we pass a VMSTOP macro as the 'reason' argument. This is not ideal
because the VMSTOP macros tell why qemu stopped and not exactly
what the current VM state is.

One example to demonstrate this problem is that vm_start() calls
vm_state_notify() with reason=0, which turns out to be VMSTOP_USER.

This commit fixes that by replacing the VMSTOP macros with a proper
state type called RunState.

Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
parent bff046f8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment