979da8b357
docs/devel/migration: start a debugging section
...
Explain how to use analyze-migration.py, this may help.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20200330174852.456148-1-marcandre.lureau@redhat.com >
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
2020-05-07 17:40:24 +01:00
ce62df5378
migration: register_savevm_live doesn't need dev
...
Commit 78dd48df3
removed the last caller of register_savevm_live for an
instantiable device (rather than a single system wide device);
so trim out the parameter.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Message-Id: <20190822115433.12070-1-dgilbert@redhat.com >
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Reviewed-by: Cornelia Huck <cohuck@redhat.com >
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
2019-09-12 11:15:03 +01:00
ac78f73722
misc: fix naming scheme of compatiblity arrays
...
Since merge 31ed41889e
("Merge
remote-tracking branch
'remotes/elmarco/tags/machine-props-pull-request' into staging"), the
compat arrays are in lowercase.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com >
Message-Id: <20190708204909.10891-1-marcandre.lureau@redhat.com >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2019-08-21 10:29:03 +02:00
8c07559fc7
migration: Add post_save function to VMStateDescription
...
In some cases it may be helpful to modify state before saving it for
migration, and then modify the state back after it has been saved. The
existing pre_save function provides half of this functionality. This
patch adds a post_save function to provide the second half.
Signed-off-by: Aaron Lindsay <aclindsa@gmail.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Message-id: 20181211151945.29137-2-aaron@os.amperecomputing.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2019-01-21 10:38:55 +00:00
c26763f8ec
memory: learn about non-volatile memory region
...
Add a new flag to mark memory region that are used as non-volatile, by
NVDIMM for example. That bit is propagated down to the flat view, and
reflected in HMP info mtree with a "nv-" prefix on the memory type.
This way, guest_phys_blocks_region_add() can skip the NV memory
regions for dumps and TCG memory clear in a following patch.
Cc: dgilbert@redhat.com
Cc: imammedo@redhat.com
Cc: pbonzini@redhat.com
Cc: guangrong.xiao@linux.intel.com
Cc: mst@redhat.com
Cc: xiaoguangrong.eric@gmail.com
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20181003114454.5662-2-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2018-11-06 21:35:05 +01:00
3eb21fe9e5
docs/migration: Clarify pre_load in subsections
...
Clarify that the pre_load function in a subsection is only called if
the subsection is found; to handle a missing subsection you may
set values in the pre_load of the parent vmsd.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Reviewed-by: Juan Quintela <quintela@redhat.com >
Signed-off-by: Juan Quintela <quintela@redhat.com >
2018-08-22 11:40:47 +02:00
9277d81f5c
docs: Grammar and spelling fixes
...
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Eric Blake <eblake@redhat.com >
Message-id: 20180612065150.21110-1-ville.skytta@iki.fi
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-07-13 10:16:04 +01:00
edd7080692
migration: update docs
...
Update the migration docs:
Among other changes:
* Added a general list of advice for device authors
* Reordered the section on conditional state (subsections etc)
into the order we prefer.
* Add a note about firmware
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Reviewed-by: Peter Xu <peterx@redhat.com >
Reviewed-by: Balamuruhan S <bala24@linux.vnet.ibm.com >
Reviewed-by: Juan Quintela <quintela@redhat.com >
Message-Id: <20180503191059.19576-1-dgilbert@redhat.com >
Signed-off-by: Juan Quintela <quintela@redhat.com >
2018-05-15 22:13:08 +02:00
9ed01779e8
migration: postcopy_blocktime documentation
...
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com >
Reviewed-by: Juan Quintela <quintela@redhat.com >
Signed-off-by: Juan Quintela <quintela@redhat.com >
Message-Id: <1521742647-25550-5-git-send-email-a.perevalov@samsung.com >
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
2018-04-25 18:02:16 +01:00
1dc61e7b37
postcopy shared docs
...
Add some notes to the migration documentation for shared memory
postcopy.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2018-03-20 16:40:37 +02:00
c2eb7f213a
migration: improve documentation of postcopy-ram
...
This capability must have the same value on both source and destination,
otherwise migration fails (commit 875fcd013a
"migration: incoming
postcopy advise sanity checks").
Let's write it down in various places where postcopy-ram is documented.
Signed-off-by: Greg Kurz <groug@kaod.org >
Message-Id: <151801810352.29167.4832480228518630626.stgit@bahia.lan >
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
2018-02-14 10:23:15 +00:00
ee86981bda
migration: Revert postcopy-blocktime commit set
...
This reverts commits
ca6011c
migration: add postcopy total blocktime into query-migrate
5f32dc8
migration: add blocktime calculation into migration-test
2f7dae9
migration: postcopy_blocktime documentation
3be98be
migration: calculate vCPU blocktime on dst side
01a87f0
migration: add postcopy blocktime ctx into MigrationIncomingState
31bf06a
migration: introduce postcopy-blocktime capability
as they don't build on ppc32 due to trying to do atomic accesses
on types that are larger than the host pointer type.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-01-23 10:08:05 +00:00
2f7dae9dd3
migration: postcopy_blocktime documentation
...
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com >
Reviewed-by: Juan Quintela <quintela@redhat.com >
Signed-off-by: Juan Quintela <quintela@redhat.com >
2018-01-15 12:48:02 +01:00
2e3c8f8dbd
docs: Convert migration.txt to rst
...
Mostly just manual conversion with very minor fixes.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Reviewed-by: Daniel P. Berrange <berrange@redhat.com >
Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com >
Reviewed-by: Peter Xu <peterx@redhat.com >
Signed-off-by: Juan Quintela <quintela@redhat.com >
2018-01-15 12:47:56 +01:00