|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 4 of 6] When passing no bitmap for the shadow log dir
To: |
xen-devel@xxxxxxxxxxxxxxxxxxx |
Subject: |
[Xen-devel] [PATCH 4 of 6] When passing no bitmap for the shadow log dirty bitmap clean up, we should not get EFAULT |
From: |
Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx> |
Date: |
Mon, 14 Nov 2011 16:48:45 -0500 |
Cc: |
olaf@xxxxxxxxx, George.Dunlap@xxxxxxxxxxxxx, andres@xxxxxxxxxxxxxx, tim@xxxxxxx, keir.xen@xxxxxxxxx, adin@xxxxxxxxxxxxxx |
Delivery-date: |
Mon, 14 Nov 2011 13:54:04 -0800 |
Dkim-signature: |
v=1; a=rsa-sha1; c=relaxed; d=lagarcavilla.org; h= content-type:mime-version:content-transfer-encoding:subject :message-id:in-reply-to:references:date:from:to:cc; s= lagarcavilla.org; bh=UCgQGfavCe+pefGhF8nkwIW/LwE=; b=GnStGLclJGk KxuaseK850EciiUJCmNGhmwL8yaxWkE06aK79Ws7DgrUIBzmq1LPEt1jdzKm1kkn XhYWg2+GrGJBZmEP/xrLp+sto+jJEtVYe4mQR2OfFEdeTiKqp/NvRpuF1xaM4C+n kzVi1WcC9ksMDOmVPBp1WwB+WjtlVz1c= |
Domainkey-signature: |
a=rsa-sha1; c=nofws; d=lagarcavilla.org; h=content-type :mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:date:from:to:cc; q=dns; s= lagarcavilla.org; b=IXslYFgqIyAoJDGNtzPPT1SSkUMmkySaibPoDHtx1uaS eoyRJ6bMZJhrK0ckhX6Y5mwIc8OtlM8E34tHHnYC4dCa5DYlOKZh89S8dxm9ddpj 8ewoy1TUlyawDiHZA+VbJDL7WLP9szEltcJdm1jAHri1IrGeUkTcxNX83iqUT/o= |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<patchbomb.1321307321@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> |
References: |
<patchbomb.1321307321@xxxxxxxxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
Mercurial-patchbomb/1.8.4 |
tools/libxc/xc_domain.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
This is due to a stale check for guest_handle_null in the hypervisor, which
doesn't
necessarily work with the hypercall buffers.
Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
diff -r 43dd4fdbf539 -r f11528df1df3 tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c
+++ b/tools/libxc/xc_domain.c
@@ -430,6 +430,8 @@ int xc_shadow_control(xc_interface *xch,
DECLARE_DOMCTL;
DECLARE_HYPERCALL_BUFFER_ARGUMENT(dirty_bitmap);
+ memset(&domctl, 0, sizeof(domctl));
+
domctl.cmd = XEN_DOMCTL_shadow_op;
domctl.domain = (domid_t)domid;
domctl.u.shadow_op.op = sop;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|