From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [PATCH v2 4/6] libxc: allow for ctxt to be NULL in xc_vcpu_setcontext Date: Tue, 10 Sep 2013 19:54:05 +0200 Message-ID: <20130910175404.7735.78281.stgit@hit-nxdomain.opendns.com> References: <20130910174758.7735.13358.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: <20130910174758.7735.13358.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: xen-devel@lists.xen.org Cc: Wei Liu , Ian Campbell , Andrew Cooper , Tim Deegan , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org 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 Reviewed-by: Andrew Cooper --- Changes from v1: * clarified the changelog. --- 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 c0ce079..3210e34 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;