From patchwork Mon Oct 7 15:12:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Rosbrook X-Patchwork-Id: 11177775 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8E0E13BD for ; Mon, 7 Oct 2019 15:14:49 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B4E7E2070B for ; Mon, 7 Oct 2019 15:14:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gw5i2YiG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B4E7E2070B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iHUhO-0006hK-Gk; Mon, 07 Oct 2019 15:13:22 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iHUhN-0006hE-NS for xen-devel@lists.xenproject.org; Mon, 07 Oct 2019 15:13:21 +0000 X-Inumbo-ID: fd7efd42-e914-11e9-80e3-bc764e2007e4 Received: from mail-qt1-x844.google.com (unknown [2607:f8b0:4864:20::844]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id fd7efd42-e914-11e9-80e3-bc764e2007e4; Mon, 07 Oct 2019 15:13:17 +0000 (UTC) Received: by mail-qt1-x844.google.com with SMTP id r5so19711869qtd.0 for ; Mon, 07 Oct 2019 08:13:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PPC0S7sPiHZ9eZt4eeH4dqS3WzPg9DdSZ+5hxQ5L6qo=; b=gw5i2YiGVNAsgJ+7sgG1/PnIL5Ksl921fiHywV95JKlXut6SXzK1s3YrtYAE6gVvgW R+gEhjec4MOPtDN85AV+O/qHRsEfBKJPQYV9yLVNyJQaRBmh4BZH5KncWyFxi2ubAqa7 +SFm2uQVjyUEyQd8Nv12xiYxkNcogRNdyMWy0b+pvWC8YNO3iB8nq9Ezrb0hht2ZUHfL tvfTazjjag+mJXAtQw5s8EXqLV29xiz5qPfpoWA/VAkeEgYXREgFc6A2d5KziJYrFnr2 DjW0vGzo+UmktUGnGTlnk6bWf4eRv6ohnM0XnzhKrq7+BnJSuRrBNoFtUKkzUV2s8Rl9 ebPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PPC0S7sPiHZ9eZt4eeH4dqS3WzPg9DdSZ+5hxQ5L6qo=; b=VHzCo6BFa2LJyBUMb6g5PIT8+ItcwDaulYAilitni18Rp5eG5i/Hii7VSq2UxXvOjr C6+Vz6EYOSc8lWCNGRFckg1tDF4/yuzufQVZDI3ItjcBEgQzILWrel2r7vZjPI78axLl DKKlzSl3yKurBQaS9QgLAK7yaFBS7TZ3Pfe+WIMlhCeJZ5PGcsHY2Jlray8Qrxp2LhNw 4KH6iCWOWhe1IqvDX9S+F3G4wvHXju1fEZGhr0Zgidn0jgw6Eq0ILAPORLUUJcYQ8HQx rF6sKNzhctMKmIaS0tYXwzrJEfx5a5boX5lSmzb1sJoQ031MgXbQHpjD8CeYYUR2/wzO tSMQ== X-Gm-Message-State: APjAAAU5WUAoQ5M8+CUHbwn/rsypONCDtA6IEwAc91zn0xOC3xCf87nv aD9YHQRGyyWoqz8eahoZdY43XEZQ X-Google-Smtp-Source: APXvYqyB0iq5l5KC7Ac+YCZ85JvmAsh3/gJ3776MI0mgRoRNJWDJfbxulVUJOanxJ0vwJnu/EsE69Q== X-Received: by 2002:ac8:198b:: with SMTP id u11mr30267909qtj.108.1570461196581; Mon, 07 Oct 2019 08:13:16 -0700 (PDT) Received: from five.crux.rad.ainfosec.com (209-217-208-226.northland.net. [209.217.208.226]) by smtp.googlemail.com with ESMTPSA id c185sm8354313qkg.74.2019.10.07.08.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 08:13:16 -0700 (PDT) From: Nick Rosbrook To: xen-devel@lists.xenproject.org Date: Mon, 7 Oct 2019 11:12:48 -0400 Message-Id: <5c509297c01b8931986b1d039de1c72e89e44037.1570456846.git.rosbrookn@ainfosec.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 01/24] golang/xenlight: fix calls to libxl_domain_unpause/pause X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Nick Rosbrook , Ian Jackson , kerriganb@ainfosec.com, George Dunlap , Wei Liu Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Nick Rosbrook These functions require a third argument of type const *libxl_asyncop_how. Pass nil to fix compilation errors. This will have the effect of performing these operations synchronously. Signed-off-by: Nick Rosbrook Reviewed-by: George Dunlap --- Cc: George Dunlap Cc: Ian Jackson Cc: Wei Liu tools/golang/xenlight/xenlight.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/golang/xenlight/xenlight.go b/tools/golang/xenlight/xenlight.go index f5d171c2d5..59b8186a64 100644 --- a/tools/golang/xenlight/xenlight.go +++ b/tools/golang/xenlight/xenlight.go @@ -1011,7 +1011,7 @@ func (Ctx *Context) DomainUnpause(Id Domid) (err error) { return } - ret := C.libxl_domain_unpause(Ctx.ctx, C.uint32_t(Id)) + ret := C.libxl_domain_unpause(Ctx.ctx, C.uint32_t(Id), nil) if ret != 0 { err = Error(-ret) @@ -1026,7 +1026,7 @@ func (Ctx *Context) DomainPause(id Domid) (err error) { return } - ret := C.libxl_domain_pause(Ctx.ctx, C.uint32_t(id)) + ret := C.libxl_domain_pause(Ctx.ctx, C.uint32_t(id), nil) if ret != 0 { err = Error(-ret)