From: "Nathan" Subject: xen save problem Date: Sun, 9 Aug 2009 03:48:59 -0600 Message-ID: <2C94DB12B61A4782A46833AE2455FE73@nathwork> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0653665275==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============0653665275== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01CA18A4.5409C4F0" This is a multi-part message in MIME format. ------=_NextPart_000_0013_01CA18A4.5409C4F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, everyone, Thanks for your attention, I'm new to xen-devel and now have a weird = problem. I implemented a very easy live save/migration program, which = works OK for PV-domains. But for HVM domains, it only works for the = first time. So if I run the program for the first time: myxm save vm-name test.dat everything is OK. then after I restore the domain using: xm restore test.dat and run the program again: myxm save vm-name test.dat the program will output an error message : timed out waiting for qemu to = switch buffers which is due to line 218 in function qemu_flip_buffer, file xc_save.c I debuged the program, and found that at first, xs_read function returns = NULL but variable len is set to 7, then it tries to read again and = timeout. I compared my own program with xen built-in xc_save.c, = xc_domain_save.c files and found nothing. Do you have any idea why this = happens, or is there any difference between a new HVM domain and a = restored HVM domain ? I'm using xen-3.3 on ubuntu 8.10. Thanks very much Nathan Perry ------=_NextPart_000_0013_01CA18A4.5409C4F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi, everyone,
 
Thanks for your attention, I'm new to = xen-devel=20 and now have a weird problem. I implemented a very easy live = save/migration=20 program, which works OK for PV-domains. But for HVM domains, it only = works for=20 the first time.
 
So if I run the program for the first = time:
myxm save vm-name = test.dat
everything is OK. then after I restore the domain using:
xm restore test.dat
 
and run the program = again:
myxm save vm-name = test.dat
 
the program will output an error = message : timed=20 out waiting for qemu to switch buffers
which is due to line 218 in = function=20 qemu_flip_buffer, file xc_save.c
 
I debuged the program, and found that = at first,=20 xs_read function returns NULL but variable len is set to 7, then it = tries to=20 read again and timeout. I compared my own program with xen built-in = xc_save.c,=20 xc_domain_save.c files and found nothing. Do you have any idea why this happens, or is there any = difference=20 between a new HVM domain and a restored HVM domain ? I'm using = xen-3.3=20 on ubuntu 8.10.
 
Thanks very much
 
Nathan = Perry
------=_NextPart_000_0013_01CA18A4.5409C4F0-- --===============0653665275== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0653665275==--