]> Git Repo - qemu.git/commit - qmp.c
qmp: forbid qmp_cont in RUN_STATE_FINISH_MIGRATE
authorVladimir Sementsov-Ogievskiy <[email protected]>
Thu, 24 Jan 2019 12:25:24 +0000 (15:25 +0300)
committerKevin Wolf <[email protected]>
Mon, 20 May 2019 15:08:56 +0000 (17:08 +0200)
commit9183dd15334f1eee46051bbdafc6ab9fbfc2efd5
tree815f2c7ee07a574688f13144f2cb23241e090349
parent41ae31e3d7696ec639b8fd6c162846244eeaa511
qmp: forbid qmp_cont in RUN_STATE_FINISH_MIGRATE

qmp_cont in RUN_STATE_FINISH_MIGRATE may lead to moving vm to
RUN_STATE_RUNNING, before actual migration finish. So, when migration
thread will try to go to RUN_STATE_POSTMIGRATE, assuming transition
RUN_STATE_FINISH_MIGRATE->RUN_STATE_POSTMIGRATE, it will crash, as
current state is RUN_STATE_RUNNING, and transition
RUN_STATE_RUNNING->RUN_STATE_POSTMIGRATE is forbidden.

Reported-by: Max Reitz <[email protected]>
Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
qmp.c
This page took 0.021665 seconds and 4 git commands to generate.