diff mbox series

golang/xenlight: Refresh generated helpers are recent libxl changes

Message ID 20210122131801.32457-1-andrew.cooper3@citrix.com (mailing list archive)
State New
Headers show
Series golang/xenlight: Refresh generated helpers are recent libxl changes | expand

Commit Message

Andrew Cooper Jan. 22, 2021, 1:18 p.m. UTC
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Ian Jackson <iwj@xenproject.org>
CC: Wei Liu <wl@xen.org>
CC: Nick Rosbrook <rosbrookn@ainfosec.com>
CC: George Dunlap <george.dunlap@eu.citrix.com>
---
 tools/golang/xenlight/helpers.gen.go | 3 +++
 tools/golang/xenlight/types.gen.go   | 2 ++
 2 files changed, 5 insertions(+)

Comments

Ian Jackson Jan. 22, 2021, 2:21 p.m. UTC | #1
Andrew Cooper writes ("[PATCH] golang/xenlight: Refresh generated helpers are recent libxl changes"):
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>

Can you please resend with something along these lines in the commit
message:

  Results of running
     <rune>

  No manual changes.

In which case, assuming that's true,

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

Thanks,
Ian.
Nick Rosbrook Jan. 22, 2021, 2:31 p.m. UTC | #2
On Fri, Jan 22, 2021 at 01:18:01PM +0000, Andrew Cooper wrote:
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>

I think you mean "after recent" rather than "are recent" in your commit
message. But otherwise,

Acked-by: Nick Rosbrook <rosbrookn@ainfosec.com>

Thanks,
NR
diff mbox series

Patch

diff --git a/tools/golang/xenlight/helpers.gen.go b/tools/golang/xenlight/helpers.gen.go
index c8605994e7..e0681ee14e 100644
--- a/tools/golang/xenlight/helpers.gen.go
+++ b/tools/golang/xenlight/helpers.gen.go
@@ -2025,6 +2025,7 @@  x.PowerMgmt = bool(xc.power_mgmt)
 x.Permissive = bool(xc.permissive)
 x.Seize = bool(xc.seize)
 x.RdmPolicy = RdmReservePolicy(xc.rdm_policy)
+x.Name = C.GoString(xc.name)
 
  return nil}
 
@@ -2044,6 +2045,8 @@  xc.power_mgmt = C.bool(x.PowerMgmt)
 xc.permissive = C.bool(x.Permissive)
 xc.seize = C.bool(x.Seize)
 xc.rdm_policy = C.libxl_rdm_reserve_policy(x.RdmPolicy)
+if x.Name != "" {
+xc.name = C.CString(x.Name)}
 
  return nil
  }
diff --git a/tools/golang/xenlight/types.gen.go b/tools/golang/xenlight/types.gen.go
index b4c5df0f2c..ac78dea1af 100644
--- a/tools/golang/xenlight/types.gen.go
+++ b/tools/golang/xenlight/types.gen.go
@@ -210,6 +210,7 @@  ViridianEnlightenmentCrashCtl ViridianEnlightenment = 6
 ViridianEnlightenmentSynic ViridianEnlightenment = 7
 ViridianEnlightenmentStimer ViridianEnlightenment = 8
 ViridianEnlightenmentHcallIpi ViridianEnlightenment = 9
+ViridianEnlightenmentExProcessorMasks ViridianEnlightenment = 10
 )
 
 type Hdtype int
@@ -719,6 +720,7 @@  PowerMgmt bool
 Permissive bool
 Seize bool
 RdmPolicy RdmReservePolicy
+Name string
 }
 
 type DeviceRdm struct {