[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 4/6] libxc: allow for ctxt to be NULL in xc_vcpu_setcontext
On 12/07/13 17:48, Dario Faggioli wrote: > Since, as can be seen in xen/common/domctl.c, that is legitimate. > Actually, it is the only way to have vcpu_reset() invoked from > outside Xen. > > Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx> > Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> > Cc: Ian Campbell <ian.campbell@xxxxxxxxxx> > Cc: George Dunlap <George.Dunlap@xxxxxxxxxxxxx> > Cc: Jan Beulich <JBeulich@xxxxxxxx> > Cc: Keir Fraser <keir@xxxxxxx> "it is the only way to have vcpu_reset() invoked from outside Xen." without manually constructing a vcpu_op. Still, Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> > --- > tools/libxc/xc_domain.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c > index d64d0bc..a247426 100644 > --- a/tools/libxc/xc_domain.c > +++ b/tools/libxc/xc_domain.c > @@ -1140,12 +1140,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; > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxx > http://lists.xen.org/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |