Message ID | cover.1570456846.git.rosbrookn@ainfosec.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=0Q+7=YA=lists.xenproject.org=xen-devel-bounces@kernel.org> 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 4811C13BD for <patchwork-xen-devel@patchwork.kernel.org>; Mon, 7 Oct 2019 15:14:48 +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 2335A2070B for <patchwork-xen-devel@patchwork.kernel.org>; Mon, 7 Oct 2019 15:14:48 +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="VrcfyKvO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2335A2070B 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 <xen-devel-bounces@lists.xenproject.org>) id 1iHUhK-0006h5-6l; Mon, 07 Oct 2019 15:13:18 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from <SRS0=0SFq=YA=gmail.com=rosbrookn@srs-us1.protection.inumbo.net>) id 1iHUhI-0006h0-Mr for xen-devel@lists.xenproject.org; Mon, 07 Oct 2019 15:13:16 +0000 X-Inumbo-ID: fcc06b0c-e914-11e9-96dc-bc764e2007e4 Received: from mail-qk1-x72a.google.com (unknown [2607:f8b0:4864:20::72a]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id fcc06b0c-e914-11e9-96dc-bc764e2007e4; Mon, 07 Oct 2019 15:13:16 +0000 (UTC) Received: by mail-qk1-x72a.google.com with SMTP id h126so12879866qke.10 for <xen-devel@lists.xenproject.org>; Mon, 07 Oct 2019 08:13:16 -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:mime-version :content-transfer-encoding; bh=oWJZ5CTiBpzeFNA7EhUYLbX0ZPSm7z4GXDaqYPNz3qY=; b=VrcfyKvOjgq2uteiByuJBN/H3Js0c+otDFnOzJefdWL1CkGSgknfFo+moRWfUNn+DU zKnxOClcyEt2o2e2wjCi3+jt3yV6ZkSB9Wje2wtK/6rKy5nPmNrBbrOqfaFAALuX4650 PdIV4A5YD9H48W/hRYcn7OYr8lgXXN0MPUS1Z7vklCuNjqGIupM5yX+lDT5jia1pYdcQ OwVg2YYd6DXz5YgHbo02C/CIXYsAWjdLrojcHBC6Rb/ggZXsM8Z5bYa0mjDgag6+fyPb KNub7md0SI+uBzUY5I6ZpdVnypHITrW25k2EBcQV056GbiO4FLCt8drmmnSfblJ3bMPQ UqQg== 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=oWJZ5CTiBpzeFNA7EhUYLbX0ZPSm7z4GXDaqYPNz3qY=; b=V6r/SCrUav8Pf+CLfU3rX8savMFOQDM4vOCA0myltx1VFn5uCEm5jAPgh5EnnO0wqN UFKcl+cvLRxuJlrNBiI3WdlXAMlPlRnpwhDq4BViZwvzI+wLEwHVX9WM/owjm6+ZGL/k Fp6qgeezARV4eURxeCPhj4v4eCaals2hWavn5LM/SGlhLprfKyJV3/MaLMHH2vSD49eQ ZMH8mRK70xAiyxO1YWd+fiLzkOL5JsJOoWbqVUZDeSpCCENO/Iej76cCT3ocgBoGod6X RSoeG+O+s8IiCVb69QVbHXGQNzNq6jzhk3QfxRD4mku3tlY9ZmvAHHDwcvFtAu/iKyJD BHPw== X-Gm-Message-State: APjAAAUcBRNXr4VeQhSJn4PynfqhGJGgiggu+yE9LvxHSOQgLkHAGPju PojyV5HL3Fw1qxfOLQFlFcnv9ifeJp4= X-Google-Smtp-Source: APXvYqx/d1n+e+xPvEYL5sMwPGOsPdzwvrxRnFjC5RMx5RPPyoXJSn0t9Qc3Yf+kj8mv1Pj4qfYewA== X-Received: by 2002:a37:7d43:: with SMTP id y64mr24200382qkc.168.1570461195176; Mon, 07 Oct 2019 08:13:15 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 08:13:14 -0700 (PDT) From: Nick Rosbrook <rosbrookn@gmail.com> To: xen-devel@lists.xenproject.org Date: Mon, 7 Oct 2019 11:12:47 -0400 Message-Id: <cover.1570456846.git.rosbrookn@ainfosec.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 00/24] generated Go libxl bindings using IDL X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xenproject.org> List-Unsubscribe: <https://lists.xenproject.org/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xenproject.org> List-Help: <mailto:xen-devel-request@lists.xenproject.org?subject=help> List-Subscribe: <https://lists.xenproject.org/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=subscribe> Cc: Nick Rosbrook <rosbrookn@ainfosec.com>, Ian Jackson <ian.jackson@eu.citrix.com>, kerriganb@ainfosec.com, George Dunlap <george.dunlap@citrix.com>, Wei Liu <wl@xen.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" <xen-devel-bounces@lists.xenproject.org> |
Series |
generated Go libxl bindings using IDL
|
expand
|
From: Nick Rosbrook <rosbrookn@ainfosec.com> After Xen summit, we started the discussion in this[1] RFC thread to figure out how to generate Go bindings for libxl. This series implements that Go code generation using the existing IDL, and updates the existing hand-written code in xenlight.go to use the generated code. The goal of this series is to provide a good foundation for continued development of the Go package. These patches can also be found on my GitHub branch[2]. [1] https://lists.xenproject.org/archives/html/xen-devel/2019-07/msg02259.html [2] https://github.com/enr0n/xen/tree/golang-patches-v1 Nick Rosbrook (24): golang/xenlight: fix calls to libxl_domain_unpause/pause golang/xenlight: generate enum types from IDL golang/xenlight: define Defbool builtin type golang/xenlight: define Devid type as int golang/xenlight: define KeyValueList builtin type golang/xenlight: re-name Bitmap marshaling functions golang/xenlight: define StringList builtin type golang/xenlight: define Mac builtin type golang/xenlight: define MsVmGenid builtin type golang/xenlight: define EvLink builtin as empty struct golang/xenlight: define CpuidPolicyList builtin type golang/xenlight: re-factor Uuid type implementation golang/xenlight: re-factor Hwcap type implementation golang/xenlight: generate structs from the IDL golang/xenlight: remove no-longer used type MemKB golang/xenlight: begin C to Go type marshaling golang/xenlight: implement keyed union C to Go marshaling golang/xenlight: implement array C to Go marshaling golang/xenlight: begin Go to C type marshaling golang/xenlight: implement keyed union Go to C marshaling golang/xenlight: implement array Go to C marshaling golang/xenlight: revise use of Context type golang/xenlight: add error return type to Context.Cpupoolinfo golang/xenlight: add make target for generated files tools/golang/xenlight/Makefile | 22 +- tools/golang/xenlight/gengotypes.py | 698 +++++ tools/golang/xenlight/xenlight.go | 928 +++--- tools/golang/xenlight/xenlight_helpers.go | 3404 +++++++++++++++++++++ tools/golang/xenlight/xenlight_types.go | 1212 ++++++++ 5 files changed, 5727 insertions(+), 537 deletions(-) create mode 100644 tools/golang/xenlight/gengotypes.py create mode 100644 tools/golang/xenlight/xenlight_helpers.go create mode 100644 tools/golang/xenlight/xenlight_types.go Cc: George Dunlap <george.dunlap@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Wei Liu <wl@xen.org>