From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 4/6] libxc: allow for ctxt to be NULL in xc_vcpu_setcontext Date: Fri, 12 Jul 2013 18:38:24 +0100 Message-ID: <51E03F10.2040106@citrix.com> References: <20130712163607.14010.39937.stgit@hit-nxdomain.opendns.com> <20130712164824.14010.4817.stgit@hit-nxdomain.opendns.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130712164824.14010.4817.stgit@hit-nxdomain.opendns.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Keir Fraser , Ian Campbell , George Dunlap , Ian Jackson , xen-devel@lists.xen.org, Jan Beulich List-Id: xen-devel@lists.xenproject.org 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 > Cc: Ian Jackson > Cc: Ian Campbell > Cc: George Dunlap > Cc: Jan Beulich > Cc: Keir Fraser "it is the only way to have vcpu_reset() invoked from outside Xen." without manually constructing a vcpu_op. Still, Reviewed-by: Andrew Cooper > --- > 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@lists.xen.org > http://lists.xen.org/xen-devel