diff options
| author | George Dunlap <george.dunlap@eu.citrix.com> | 2011-04-07 15:40:44 +0100 |
|---|---|---|
| committer | George Dunlap <george.dunlap@eu.citrix.com> | 2011-04-07 15:40:44 +0100 |
| commit | 1103c69febefd3a4ce27ad991f16effadeee665f (patch) | |
| tree | 221d0995da6195b848204d5ff5dc3280fe0434bd /extras/mini-os/netfront.c | |
| parent | 5b713d432463659eb64488976a385aa7e64279d9 (diff) | |
| download | xen-1103c69febefd3a4ce27ad991f16effadeee665f.tar.gz xen-1103c69febefd3a4ce27ad991f16effadeee665f.tar.bz2 xen-1103c69febefd3a4ce27ad991f16effadeee665f.zip | |
hvm: infrastructure for backwards-compatible loading
The hvm_save code is used to save and restore hypervisor-related hvm
state, either for classic save/restore, or for migration (including
remus). This is meant to be backwards-compatible across some
hypervisor versions; but if it does change, there is no way to handle
the old format as well as the new.
This patch introduces the infrastructure to allow a single older
version ("compat") of any given "save type" to be defined, along with
a function to turn the "old" version into the "new" version. If the
size check fails for the "normal" version, it will check the "compat"
version, and if it matches, will read the old entry and call the
conversion function.
This patch involves some preprocessor hackery, but I'm only extending
the hackery that's already there.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Tim Deegan <Tim.Deegan@citrix.com>
Committed-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset: 23171:6a5830de7b54
xen-unstable date: Wed Apr 06 11:40:51 2011 +0100
Diffstat (limited to 'extras/mini-os/netfront.c')
0 files changed, 0 insertions, 0 deletions
