From patchwork Mon Oct 7 15:12:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Rosbrook X-Patchwork-Id: 11177791 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 B856B139A for ; Mon, 7 Oct 2019 15:15:21 +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 940022070B for ; Mon, 7 Oct 2019 15:15:21 +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="Q81wZkCs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 940022070B 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 1iHUi7-00071p-VF; Mon, 07 Oct 2019 15:14:07 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iHUi6-00071B-Nf for xen-devel@lists.xenproject.org; Mon, 07 Oct 2019 15:14:06 +0000 X-Inumbo-ID: 03da0830-e915-11e9-96dc-bc764e2007e4 Received: from mail-qk1-x743.google.com (unknown [2607:f8b0:4864:20::743]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 03da0830-e915-11e9-96dc-bc764e2007e4; Mon, 07 Oct 2019 15:13:28 +0000 (UTC) Received: by mail-qk1-x743.google.com with SMTP id y144so12883638qkb.7 for ; Mon, 07 Oct 2019 08:13:28 -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=fLq7XQ92BeMVsT2m2BhvNxEhlUOlCOEk5KSB4uowWIE=; b=Q81wZkCsKx46eQhWV8L2sbayyfCOfVFL5x9+nYg9mRIx/Gb9AFIkQsmo73a3w4hzST 4Kdp3GSOLBuXDf5NDmSaoMZ2kFwTs80YjNivzD8zbQeZ0cSvW8s88Rmn8zXZVcJMaxdw B0ypi8Mkk+5JmX5jpps/N5cDP4fcOaQwlDXE2xUpHp7UcEayVCe6no9DmuNQj7rVRZjJ 8TX2x6hF9bND+hoK5SA6Tj1kMrY8oTHSF1h564vdUKNTtBeLUAoNRWX3t+jfVVuf3TYt 96A5peu0xp2juJQk8lAJ/D6CfR4UGthbLEyuk+fFVycQvQdb8Rk8Jj9Z6kVNY4mWqaD7 rDrg== 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=fLq7XQ92BeMVsT2m2BhvNxEhlUOlCOEk5KSB4uowWIE=; b=i9sot6GPVC5L/bdCQynK23VCP3VnRzQ66wBT9AWGyiuD4K1UWja0UbCmA96FtYzKKs 9nAD7SxfnMYMRxU5axYPnDP4pqORxxrkR0ztd9KbfVq8EUzrZnU2j2CS0eDRACUpzk8+ 8qh1OJcAsg1uMwQJAHZFzdHPsxI5vVGXBPW5TeewGmBB9BAnXlR6uFhJzZGxS3M7X9BR tp1DqJbSsc2yaBNThKSQAULUK84L0wpN5fcOc4883IE1d3K+TZDqgI1Kcb3Y2UVIbIPY yxwiNDNFYJDLk70AD2xQa210C6838jk1Y1+KTUyzBL2PrwqG/9RiGyXYvqrBstxAvTqc OhYQ== X-Gm-Message-State: APjAAAXFROvGstzuU2F0jQrh6XpY6MOxC7cN9MA8wmqaq40+O//b4VYn 5yhSCscbi+u8xC1mBOv5EirKR9ar X-Google-Smtp-Source: APXvYqyExoxNgEv29+weTL5IDJS5aSgcK3LVbAaklEnbAST8oZ4pYomZHz/1p/4zPZx8Brwyvj9umw== X-Received: by 2002:a37:488d:: with SMTP id v135mr22142824qka.284.1570461207332; Mon, 07 Oct 2019 08:13:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 08:13:26 -0700 (PDT) From: Nick Rosbrook To: xen-devel@lists.xenproject.org Date: Mon, 7 Oct 2019 11:12:57 -0400 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 10/24] golang/xenlight: define EvLink builtin as empty struct 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 Define EvLink as empty struct as there is currently no reason the internal of this type should be used in Go. Implement fromC and toC functions as no-ops. Signed-off-by: Nick Rosbrook Reviewed-by: George Dunlap --- Cc: George Dunlap Cc: Ian Jackson Cc: Wei Liu tools/golang/xenlight/xenlight.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/golang/xenlight/xenlight.go b/tools/golang/xenlight/xenlight.go index 6aca5b89c0..d41de253f3 100644 --- a/tools/golang/xenlight/xenlight.go +++ b/tools/golang/xenlight/xenlight.go @@ -239,6 +239,16 @@ func (mvg *MsVmGenid) toC() (C.libxl_ms_vm_genid, error) { return cmvg, nil } +// EvLink represents a libxl_ev_link. +// +// Represented as an empty struct for now, as there is no +// apparent need for the internals of this type to be exposed +// through the Go package. +type EvLink struct{} + +func (el *EvLink) fromC(cel *C.libxl_ev_link) error { return nil } +func (el *EvLink) toC() (cel C.libxl_ev_link, err error) { return } + type Context struct { ctx *C.libxl_ctx logger *C.xentoollog_logger_stdiostream