aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc
diff options
context:
space:
mode:
authorDario Faggioli <dario.faggioli@citrix.com>2013-09-10 19:54:05 +0200
committerIan Campbell <ian.campbell@citrix.com>2013-09-13 13:10:05 +0100
commitdfdfcdc6f7c51ef7e5d0547120d0ac943ef43c67 (patch)
treeea19e52762ff7e4d698b1605046f0e6ea9281d71 /tools/libxc
parent2e2fa6ef6071d0369905e019b0273f3537cf5b9f (diff)
downloadxen-dfdfcdc6f7c51ef7e5d0547120d0ac943ef43c67.tar.gz
xen-dfdfcdc6f7c51ef7e5d0547120d0ac943ef43c67.tar.bz2
xen-dfdfcdc6f7c51ef7e5d0547120d0ac943ef43c67.zip
libxc: allow for ctxt to be NULL in xc_vcpu_setcontext
Since, as can be seen in xen/common/domctl.c, that is legitimate (it results in Xen calling vcpu_reset() on the vcpu). Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxc')
-rw-r--r--tools/libxc/xc_domain.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
index c0ce079e3d..3210e34a73 100644
--- a/tools/libxc/xc_domain.c
+++ b/tools/libxc/xc_domain.c
@@ -1141,12 +1141,6 @@ int xc_vcpu_setcontext(xc_interface *xch,
DECLARE_HYPERCALL_BOUNCE(ctxt, sizeof(vcpu_guest_context_any_t), XC_HYPERCALL_BUFFER_BOUNCE_IN);
int rc;
- if (ctxt == NULL)
- {
- errno = EINVAL;
- return -1;
- }
-
if ( xc_hypercall_bounce_pre(xch, ctxt) )
return -1;