mirror of https://gitlab.com/qemu-project/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Currently, when postcopy starts, the source VM starts switchover and sends a package containing the state of all non-postcopiable devices. When the destination loads this package, the switchover is complete and the destination VM starts. However, if the device state load fails or the destination side crashes, the source side is already in POSTCOPY_ACTIVE state and cannot be recovered, even when it has the most up-to-date machine state as the destination has not yet started. This patch introduces a new POSTCOPY_DEVICE state which is active while the destination machine is loading the device state, is not yet running, and the source side can be resumed in case of a migration failure. Return-path is required for this state to function, otherwise it will be skipped in favor of POSTCOPY_ACTIVE. To transition from POSTCOPY_DEVICE to POSTCOPY_ACTIVE, the source side uses a PONG message that is a response to a PING message processed just before the POSTCOPY_RUN command that starts the destination VM. Thus, this feature is effective even if the destination side does not yet support this new state. Signed-off-by: Juraj Marcin <jmarcin@redhat.com> Link: https://lore.kernel.org/r/20251103183301.3840862-9-jmarcin@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com> |
2 days ago | |
|---|---|---|
| .. | ||
| aarch64 | ||
| i386 | ||
| ppc64 | ||
| s390x | ||
| Makefile | ||
| bootfile.c | 1 month ago | |
| bootfile.h | 1 month ago | |
| compression-tests.c | 6 months ago | |
| cpr-tests.c | 1 month ago | |
| file-tests.c | 6 months ago | |
| framework.c | 1 month ago | |
| framework.h | 1 month ago | |
| migration-qmp.c | 1 month ago | |
| migration-qmp.h | 1 month ago | |
| migration-util.c | 9 months ago | |
| migration-util.h | 9 months ago | |
| misc-tests.c | 6 months ago | |
| postcopy-tests.c | 6 months ago | |
| precopy-tests.c | 2 days ago | |
| tls-tests.c | 6 months ago | |