libxc: allow for ctxt to be NULL in xc_vcpu_setcontext
authorDario Faggioli <dario.faggioli@citrix.com>
Tue, 10 Sep 2013 17:54:05 +0000 (19:54 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 13 Sep 2013 12:10:05 +0000 (13:10 +0100)
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>
tools/libxc/xc_domain.c

index c0ce079e3dfd77f650de2914c4f9b5b222cb029a..3210e34a73e09198d182ea34b17b3682bfa7abe1 100644 (file)
@@ -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;