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

runstate: introduce suspended state


QEMU enters in this state when the guest suspends to ram (S3).

This is important so that HMP users and QMP clients can know that
the guest is suspended. QMP also has an event for this, but events
are not reliable and are limited (ie. a client can connect to QEMU
after the event has been emitted).

Having a different state for S3 brings a new issue, though. Every
device that doesn't run when the VM is stopped but wants to run
when the VM is suspended has to check for RUN_STATE_SUSPENDED
explicitly. This is the case for the keyboard and mouse devices,
for example.

Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
Acked-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 0a24c7b1
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