All of lore.kernel.org
 help / color / mirror / Atom feed
* HVM save/restore issue
@ 2007-03-20  8:12 Zhai, Edwin
  2007-03-20  8:29 ` Keir Fraser
  0 siblings, 1 reply; 11+ messages in thread
From: Zhai, Edwin @ 2007-03-20  8:12 UTC (permalink / raw)
  To: Ewan Mellor, Tim; +Cc: xen-devel

latest HVM save/restore break again:(

i use the memsize(the number in the xmexample.hvm) deduced from 
'memory_static_min' to calculate some HVM PFNs when restore.

but now, 'memory_static_min' becomes 0 since r14425 and memsize is not recorded 
in the saved configuration(memory_static/dynamic_min/max...) any more.

do we have any reason to change the guest configuration so frequently?
do you have any other suggestion to get the memsize from configuration?

thanks,


-- 
best rgds,
edwin

^ permalink raw reply	[flat|nested] 11+ messages in thread
* HVM save/restore issue
@ 2007-03-15  7:48 Zhai, Edwin
  2007-03-15 10:02 ` Tim Deegan
  0 siblings, 1 reply; 11+ messages in thread
From: Zhai, Edwin @ 2007-03-15  7:48 UTC (permalink / raw)
  To: Tim, Keir; +Cc: xen-devel

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

all,
there are 2 issues of HVM save/restore:
1. restore would cause a type dismatch exception, which can be fixed by attached 
patch.

2. a saved sdl guest change to vnc after restore as "console_refs" are not empty 
and "devices" has a new added "vfb" device, which is different from create 
process.

can anybody help to fix this W/O breaking vfb?
thanks a lot.



-- 
best rgds,
edwin

[-- Attachment #2: hvm_restore_fix_r14389.patch --]
[-- Type: text/plain, Size: 847 bytes --]

Fix the python type dismatch exception when HVM restore

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>

diff -r a0bf35c39ccb tools/python/xen/xend/XendCheckpoint.py
--- a/tools/python/xen/xend/XendCheckpoint.py	Thu Mar 15 14:31:03 2007 +0800
+++ b/tools/python/xen/xend/XendCheckpoint.py	Thu Mar 15 15:34:26 2007 +0800
@@ -193,8 +193,8 @@ def restore(xd, fd, dominfo = None, paus
     is_hvm = dominfo.info.is_hvm()
     if is_hvm:
         hvm  = dominfo.info['memory_static_min']
-        apic = dominfo.info['platform'].get('apic', 0)
-        pae  = dominfo.info['platform'].get('pae',  0)
+        apic = int(dominfo.info['platform'].get('apic', 0))
+        pae  = int(dominfo.info['platform'].get('pae',  0))
         log.info("restore hvm domain %d, mem=%d, apic=%d, pae=%d",
                  dominfo.domid, hvm, apic, pae)
     else:

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2007-03-20 12:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-20  8:12 HVM save/restore issue Zhai, Edwin
2007-03-20  8:29 ` Keir Fraser
2007-03-20  8:46   ` Zhai, Edwin
2007-03-20  9:20     ` Keir Fraser
2007-03-20 10:01     ` Keir Fraser
2007-03-20 12:25       ` Zhai, Edwin
2007-03-20 10:04   ` Tim Deegan
  -- strict thread matches above, loose matches on Subject: below --
2007-03-15  7:48 Zhai, Edwin
2007-03-15 10:02 ` Tim Deegan
2007-03-16  5:45   ` Zhai, Edwin
2007-03-16  9:58     ` Tim Deegan

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.