aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_domain.c
diff options
context:
space:
mode:
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>2011-12-01 14:17:14 +0000
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>2011-12-01 14:17:14 +0000
commit76903750dc2800f12beed49f38a8660008dd443d (patch)
tree1ce94a5c8bb346d5de6cba356d472e0f04b1e077 /tools/libxc/xc_domain.c
parent7d3ada69de442c1a65f5f5686150f1ff1b6131bc (diff)
downloadxen-76903750dc2800f12beed49f38a8660008dd443d.tar.gz
xen-76903750dc2800f12beed49f38a8660008dd443d.tar.bz2
xen-76903750dc2800f12beed49f38a8660008dd443d.zip
Tools: When passing no bitmap for the shadow log dirty bitmap clean up, we should not get EFAULT
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@lagarcavilla.org> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'tools/libxc/xc_domain.c')
-rw-r--r--tools/libxc/xc_domain.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
index b6c67a2e4a..5d2a4df1b3 100644
--- 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;