save image file format
I brought this up with a few people at the summit, but I thought I'd gauge interest here.
The current format used for save files and migration has a number of problems:
1) it's not self-identifying (word size, machine type)
2) it's unversioned
3) it misses some useful meta information (e.g. xen version)
4) it's not easily extendable
5) it needlessly uses a different format from core files, requiring a debugger to implement both formats as a backend if support for both is wanted
1) and 5) makes implementing a debugger that works sanely very difficult. 2) and 4) are likely to significantly complicate things in the future, whilst 3) makes debugging a lot less useful.
As the migration format needs modifying for HVM anyway as Intel presented, and presumably for XML config changes, I suggest that a new format be put in place during the 3.0.4 timeline. Are there other people interested in such a change?
I was thinking of a simple ELF-like format. One problem is that of migration's streaming format, but this could be dealt with as a special case (e.g. that section's size is explicitly labelled as '0' to mean "special case").
There also remains the question of supporting older Xens. I don't believe that anything other than migration back-compatibility is interesting in this case, and presumably this can be handled reasonably easily by a slight refactoring of xc_linux_{save,restore} (on the presumption that people will want to migrate both to and from such older dom0's), and falling back to compat mode when the new negotation API fails.
regards
john
Quoted 7 lines
There also remains the question of supporting older Xens. I don't believe that anything other than migration back-compatibility is interesting in this case, and presumably this can be handled reasonably easily by a slight refactoring of xc_linux_{save,restore} (on the presumption that people will want to migrate both to and from such older dom0's), and falling back to compat mode when the new negotation API fails.
I wonder how necessary even this is; there's no strict guarantee that domains running on newer Xens will even be able to run on older Xens if migrated there. I guess you *might* want to be able to migrate older->newer (that's probably that you meant anyway) so that you could perform an upgrade. This does run the risk of confusing users with non-symmetric migration, however.
Just wondering if it's worth the hassle, but I guess it'd be nice not to require a whole cluster to have the same Xen/dom0/tools configuration.
Cheers,
Mark
Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!
Quoted 7 lines · John Levon
I brought this up with a few people at the summit, but I thought I'd gauge interest here.
The current format used for save files and migration has a number of problems:
Quoted 8 lines
1) it's not self-identifying (word size, machine type)
2) it's unversioned
3) it misses some useful meta information (e.g. xen version)
4) it's not easily extendable
5) it needlessly uses a different format from core files, requiring a debugger to implement both formats as a backend if support for both is wanted
I would like us to seriously consider a directory structure that contains as much information as possible.
This would address 1-4 and we can develop a tools that can can make vmcore's gcore's for the plethora of debugging tools (gdb, crash, dbx, adb) used for 5.
The result could be used for saving, debugging, cloning, move to simulators and can simply be tarballed for storage and sharing. There is so much the regular core files do not address.
The PPC team is just about to go deep on this and will slowly begin to discover all that happens here and how different we are from the current arch-users.
-JX
Quoted 15 lines · Jimi Xenidis
Quoted 6 lines
I brought this up with a few people at the summit, but I thought I'd gauge interest here.
The current format used for save files and migration has a number of problems:
Quoted 8 lines
1) it's not self-identifying (word size, machine type)
2) it's unversioned
3) it misses some useful meta information (e.g. xen version)
4) it's not easily extendable
5) it needlessly uses a different format from core files, requiring a debugger to implement both formats as a backend if support for both is wanted
Quoted 2 lines
I would like us to seriously consider a directory structure that contains as much information as possible.
That's fine. We could, for example, use this container format as return data from an "xm export"[1]. But the question of what format the memory image takes will still remain, so I think this is a useful starting point too.
regards
john
[1] we'll need this for at least the config files once the lifecycle changes are in