|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RESEND v5 6/6] xen/arm: Implement toolstack for xl restore/save and migrate
13.11.2013 15:09, Ian Campbell wrote: On Wed, 2013-11-13 at 13:57 +0400, Eugene Fedotov wrote:diff --git a/tools/libxc/xc_arm_migrate.c b/tools/libxc/xc_arm_migrate.c new file mode 100644 index 0000000..461e339 --- /dev/null +++ b/tools/libxc/xc_arm_migrate.c @@ -0,0 +1,712 @@Is this implementing the exact protocol as described in tools/libxc/xg_save_restore.h or is it a variant? Are there any docs of the specifics of the ARM protocol?This implements a quite different from tools/libxc/xg_save_restore.h protocol, it is much more simplified because we do not need some things that implemented for x86. So you're right, it has to be documented. Should we use a different header to place documentation to this (and place some definitions), for example xc_arm_migrate.h?I think xg_arm_save_restore.h would be the consistent name. At some point we should rename some of the x86 specific stuff, but you don't need to worry about that. OK We will eventually need to make a statement about the stability of the protocol, i.e on x86 we support X->X+1 migrations across Xen versions. I think we'd need to make similar guarantees on ARM before we would remove the "tech preview" label from the migration feature.So, should you believe our results (and where should we place this statement) or should you make tests from your side?By stability I mean the stability of the migration ABI across version changes, not stability as in the bugginess or otherwise of the code. IOW a commitment to supporting migration from version X to version X+1 in the future. WRT "tech preview" I don't think we are going to be able to honestly call this production ready for the general case in 4.4, I expect it'll need a bit longer to "bed in" before we are happy with that statement. (this has no bearing on whether you want to fully support it as production ready in your particular application). Our migration protocol consists of: header (Console and XenStore PFN), memory data, HVM context. Can we guarantee that HVM context of version X is compatible (or the same) as HVM context of version X ? I think if we add some HVM hardware (such as virtual RTC) in version X+1 we may have a compatibility problem, because HVM buffer structure had been changed. I think we cannot predict such things in future versions. But our migration protocol may have version number and migration between X and X+1 Xen versions is possible when we use the same protocol number in both sides (we may compare protocol versions during the migration runtime).
OK I found the reason why guest config information is not saved in libxl. the following line in xl_cmdimpl.c:[...]
if (!dom_info->quiet)
printf("Parsing config from %s\n", config_source);
in function "create_domain"
calls printf instead of fprintf(stderr, ...).
It is not the same on ARM. I have feeling that printf() causes output to
socket buffer and it breaks config data.
Should we use fprintf(stderr, "Parsing config from %s\n",
config_source); here?
If we do this, config is transferred and we do not need set VCPU number
and memory manually.
Best regards, Evgeny. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |