All of lore.kernel.org
 help / color / mirror / Atom feed
* save/restore of domU-s different in size from dom0
@ 2007-04-25 14:13 Jan Beulich
  2007-04-25 14:23 ` Keir Fraser
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2007-04-25 14:13 UTC (permalink / raw)
  To: xen-devel

Looking at the present code in xc_domain_save.c, I take it for granted that
saving a 32-bit domU with a 64-bit dom0 (or vice versa) cannot be expected
to work, yet (since the vcpu context structure layout is different and domctl
returns a context matching the domain being saved, bi-modal code appears
to be necessary here). Am I missing something?

Thanks, Jan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: save/restore of domU-s different in size from dom0
  2007-04-25 14:13 save/restore of domU-s different in size from dom0 Jan Beulich
@ 2007-04-25 14:23 ` Keir Fraser
  0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2007-04-25 14:23 UTC (permalink / raw)
  To: Jan Beulich, xen-devel

On 25/4/07 15:13, "Jan Beulich" <jbeulich@novell.com> wrote:

> Looking at the present code in xc_domain_save.c, I take it for granted that
> saving a 32-bit domU with a 64-bit dom0 (or vice versa) cannot be expected
> to work, yet (since the vcpu context structure layout is different and domctl
> returns a context matching the domain being saved, bi-modal code appears
> to be necessary here). Am I missing something?

Save on 64-bit dom0 and restore on 32-bit dom0 (or vice versa) certainly
won't work as longs are used all over the place in the save format.

Currently dom0 and domU need to be matched (both 32-bit or both 64-bit). The
bitness of Xen itself does not matter. 64-bit domU save/restore with 32-bit
dom0 is probably not that interesting. 32-bit domU save/restore with 64-bit
dom0 will at least require pt_levels and hvirt_start to be initialised based
on domain-specific details.

 -- Keir

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-25 14:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25 14:13 save/restore of domU-s different in size from dom0 Jan Beulich
2007-04-25 14:23 ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.