From patchwork Thu Nov 14 22:44:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Rosbrook X-Patchwork-Id: 11244549 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 AA3A517E0 for ; Thu, 14 Nov 2019 22:46:22 +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 857B6206E5 for ; Thu, 14 Nov 2019 22:46:22 +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="iv1dyiip" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 857B6206E5 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 1iVNrH-00056v-A1; Thu, 14 Nov 2019 22:44:59 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iVNrG-00056o-PO for xen-devel@lists.xenproject.org; Thu, 14 Nov 2019 22:44:58 +0000 X-Inumbo-ID: 62549e96-0730-11ea-9631-bc764e2007e4 Received: from mail-qv1-xf43.google.com (unknown [2607:f8b0:4864:20::f43]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 62549e96-0730-11ea-9631-bc764e2007e4; Thu, 14 Nov 2019 22:44:57 +0000 (UTC) Received: by mail-qv1-xf43.google.com with SMTP id g12so3052377qvy.12 for ; Thu, 14 Nov 2019 14:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qqte1Gd9n54GQgmDTxPdzZs/4KvBl1CI+0xxWgyW0XA=; b=iv1dyiipQ8NMv8bER+5Og54OFhMP5GOsdHHlvARMyqTSxcUlCtVbsTwxVZ8nYBc6Iw D6ePhSzLU9MYOqSsQTN6xtH+r9b01jl5/nSP8PD2zHj9vZOS48Z4WQKD9lZsr9fimyn4 dOM/iFJS3nGIkZQX/jVXeUHYpumpuaqdCJrVvcNrqcZaBTwEu5Yj/PoJ9xiHzrhyw9YV WEP6jIP8c9s79dGTvFcfAwZnSi7H7OhKeN8T2Z4KxZuwIG9XUQLqJZtBPSa2NPrgbUS5 JsxIfhlZrSBaIrSXJL3uxlvHCleO3ZZ4zYgMHP35FjLqYOggDTwEj+hwGvCUnvD1Xzz6 euDA== 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:mime-version :content-transfer-encoding; bh=qqte1Gd9n54GQgmDTxPdzZs/4KvBl1CI+0xxWgyW0XA=; b=a0oevVUx7S/JcRu2gutwx+DX1bI7WzvkpBqBuVfxTfr+XCp6wTpSScoEJ/Jqgq0TgK X0Fb4SEn+/cK60l67lEojmKwucQfY3Xt+eLTUrQzgWvNOcF2yc/Mubu4YTWDkN+XClpm 25UMuseaiKdKDg2XuN2mlgGZbEeKLlNCTwRP9MbedvZUffXQSUjUYuk+JrGpiPVgNlbF y2DFjdFTQ1oo9EAAIaj9KQaWwQ0OtVSxwlYRzlvLCgZatQUzQ54EC0za+9j3mWsaD0PK l3Z7EWIkC12fT1H+2pcEyzdPxjmiqC7SJN+qm1J27pTf6znA3P9eRIS92TGKugpiCutR caNQ== X-Gm-Message-State: APjAAAXTw85wh7DZ9Keo7/btUF/tTZ9FPnlkQxwXHMAfHFFFczKRBN/R fbLFmfyGcLHtSjIWqjWL0pVZENvI X-Google-Smtp-Source: APXvYqz4OAQNkMFl3g/ZMhNAXwf1LKdouqD1yvUP51QSLG3kLbmwgi7YhVGPNTrdBkI0YwCdhtYHQA== X-Received: by 2002:ad4:4c4e:: with SMTP id cs14mr10599869qvb.198.1573771496966; Thu, 14 Nov 2019 14:44:56 -0800 (PST) Received: from five.crux.rad.ainfosec.com (209-217-208-226.northland.net. [209.217.208.226]) by smtp.googlemail.com with ESMTPSA id x30sm4212277qtc.7.2019.11.14.14.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 14:44:55 -0800 (PST) From: Nick Rosbrook To: xen-devel@lists.xenproject.org Date: Thu, 14 Nov 2019 17:44:45 -0500 Message-Id: <603fd9f6b118b05c68858a9bf93c65d98b7efd9c.1573771485.git.rosbrookn@ainfosec.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] golang/xenlight: add missing arguments to libxl_domain_shutdown/reboot 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 , George Dunlap , Wei Liu Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Nick Rosbrook These functions now have a third parameter of type const *libxl_asyncop_how. Pass nil for this argument to fix compilation and maintain the synchronous behavior. Signed-off-by: Nick Rosbrook --- 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 59b8186a64..902cbb839e 100644 --- a/tools/golang/xenlight/xenlight.go +++ b/tools/golang/xenlight/xenlight.go @@ -1041,7 +1041,7 @@ func (Ctx *Context) DomainShutdown(id Domid) (err error) { return } - ret := C.libxl_domain_shutdown(Ctx.ctx, C.uint32_t(id)) + ret := C.libxl_domain_shutdown(Ctx.ctx, C.uint32_t(id), nil) if ret != 0 { err = Error(-ret) @@ -1056,7 +1056,7 @@ func (Ctx *Context) DomainReboot(id Domid) (err error) { return } - ret := C.libxl_domain_reboot(Ctx.ctx, C.uint32_t(id)) + ret := C.libxl_domain_reboot(Ctx.ctx, C.uint32_t(id), nil) if ret != 0 { err = Error(-ret)