WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] libxc: reset ctx->completed on each domain restore

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] libxc: reset ctx->completed on each domain restore
From: Guido Günther <agx@xxxxxxxxxxx>
Date: Wed, 5 Oct 2011 20:14:13 +0200
Delivery-date: Wed, 05 Oct 2011 11:23:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
Hi,
When using current libvirt git with libxenlight 4.1.1 restoring a domain
the second time like:

virsh save foo foo.img
virsh restore foo.img
virsh destroy foo
virsh restore foo.img

fails like:

xc: detail: xc_domain_restore start: p2m_size = 100000
xc: debug: batch 0
xc: debug: Use old firmware ioport from the checkpoint
xc: detail: Writing 0 bytes of QEMU data to /var/lib/xen/qemu-resume.733
xc: error: error zeroing magic pages (22 = Das Argument ist ungültig): Internal 
error
xc: detail: Restore exit with rc=1

Note the absence of any:

xc: debug: batch 1024

lines that are there on successful resumes. The attached patch fixes
this for me on 4.1.1. However current xen hg fails the same way and
since the static structs are gone I wonder what's causing it there. Any
ideas would be welcome!
Cheers,
 -- Guido

Attachment: 0001-xc_domain_restore-reset-the-completed-flag.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>