From patchwork Fri Apr 24 03:02:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Rosbrook X-Patchwork-Id: 11506951 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 4C3B6912 for ; Fri, 24 Apr 2020 03:02:59 +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 2702E2074F for ; Fri, 24 Apr 2020 03:02:59 +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="CjZ8G/IK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2702E2074F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass 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.92) (envelope-from ) id 1jRobl-0001We-M2; Fri, 24 Apr 2020 03:02:29 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jRobl-0001WZ-3g for xen-devel@lists.xenproject.org; Fri, 24 Apr 2020 03:02:29 +0000 X-Inumbo-ID: 07f2cf00-85d8-11ea-9e09-bc764e2007e4 Received: from mail-qv1-xf2b.google.com (unknown [2607:f8b0:4864:20::f2b]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 07f2cf00-85d8-11ea-9e09-bc764e2007e4; Fri, 24 Apr 2020 03:02:28 +0000 (UTC) Received: by mail-qv1-xf2b.google.com with SMTP id p13so4005201qvt.12 for ; Thu, 23 Apr 2020 20:02: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; bh=xZ2OA7DktmSMaGfct2/b8NA4AgSxD4oCg90AQoIQp9s=; b=CjZ8G/IKIEWMOSQmgERHzYuZ6kf/eRuZ3gRiCjYiGUezDUr9EpgvU10Uo62IgZox6O c93ouVU0E+wBPzkGrLmDhmkps6boiDJjlrnF/q4+kYLD/AVzunh3/IPMfi2um+coBSIY NA6BzFPN8Zkz8nCPSocviuahympddv2GjWsENs2KXQQ+Eu6qTKOamD7cSfdA4p7bDnTS 9OTElbCCrlYkvg3PAUaw/eFtaqAb//LEyIZTGAKtmOlEy7iNCkcmtjIqlJYXLXQbmIZ1 ChNj4e4i+OeVL17LEiGehot1NjHkcRgeCRjLg43/135ag3+R8x+kokW7hFEzppfn9X6D r+rA== 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; bh=xZ2OA7DktmSMaGfct2/b8NA4AgSxD4oCg90AQoIQp9s=; b=D6nMFnN1pOShCvcpOR/MRHwUVMI3GTidRzjVP49niHATZzncSoyZ3oYthXw3NG+4fO /Q2QsMF5CJIodqYSMCz4SvdGvc6fUvuzEt61JT3i2Odl1bOKns9W+7Va1Ehzc76q23iL yW6Fg6xscGnUKGeiYFIl52PExCWnY5gNfVvrT6fCjoVtjJUZkOHuxZ3Hsek4gYh2p1RB EnlrzIAbp+t7MvsKKqjn4HiE6xQOqz5fKNz9Nr5BRkWMpnIpBHsuD9gAIZ3oSVcY3EAk C6ed/qOB22NReSvlojqq/B4/CJnHi7kY3/4Uql0ObS+uBXpEIfUE8z85//YB4M+K4kU6 TcQg== X-Gm-Message-State: AGi0PuZW2MXdKWUbFBtGFdHsOcJa8ziqd7thpv2CfQbOP3jqotOnF1Nh 9yJ5+09BdnAoLtS/jx7tAZtnBEdQR0M= X-Google-Smtp-Source: APiQypLYW71MCL9L8HcoLA8c7pYm8nWtXQ7/TOANIMZmJzuw5hCone8QjG4n+HV2TZMT1YVSbjlqpQ== X-Received: by 2002:a05:6214:593:: with SMTP id bx19mr7422167qvb.238.1587697347359; Thu, 23 Apr 2020 20:02:27 -0700 (PDT) Received: from six.lan (cpe-67-241-56-252.twcny.res.rr.com. [67.241.56.252]) by smtp.gmail.com with ESMTPSA id i6sm2836197qkk.123.2020.04.23.20.02.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2020 20:02:26 -0700 (PDT) From: Nick Rosbrook X-Google-Original-From: Nick Rosbrook To: xen-devel@lists.xenproject.org Subject: [PATCH v2 0/1] More wrappers for xenlight Go package Date: Thu, 23 Apr 2020 23:02:23 -0400 Message-Id: X-Mailer: git-send-email 2.17.1 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 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" This series adds wrappers to the xenlight package for various libxl functions, which are now trivial to add with the generated types and marshaling helpers. In particular, these are functions that would allow redctl to begin making the transition to using the xenlight package. For reference, I have started an experimental branch where I am using these functions in redctl [1]. [1] https://gitlab.com/enr0n/redctl/-/blob/1bdf7b515654cc030e095f3a630a24530f930c00/internal/server/xenlight_xen_driver.go Changes in v2: - Define constant DomidInvalid in first patch for use in NameToDomid - Add more detail to function comments Nick Rosbrook (1): golang/xenlight: add NameToDomid and DomidToName util functions tools/golang/xenlight/xenlight.go | 38 ++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-)