[PATCH] tools/golang: update auto-generated libxl based types

Roger Pau Monne posted 1 patch 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20250702095639.90927-1-roger.pau@citrix.com
tools/golang/xenlight/helpers.gen.go | 6 ++++++
tools/golang/xenlight/types.gen.go   | 1 +
2 files changed, 7 insertions(+)
[PATCH] tools/golang: update auto-generated libxl based types
Posted by Roger Pau Monne 4 months ago
As a result of the addition of a new field in libxl domain build info
structure the golang types need to be regnerated, this was missing as part
of 22650d6054.

Regenerate the headers now.

Reported-by: Juergen Gross <jgross@suse.com>
Fixes: 22650d605462 ('x86/hvmloader: select xen platform pci MMIO BAR UC or WB MTRR cache attribute')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
 tools/golang/xenlight/helpers.gen.go | 6 ++++++
 tools/golang/xenlight/types.gen.go   | 1 +
 2 files changed, 7 insertions(+)

diff --git a/tools/golang/xenlight/helpers.gen.go b/tools/golang/xenlight/helpers.gen.go
index 191be8729775..c45df1005f2f 100644
--- a/tools/golang/xenlight/helpers.gen.go
+++ b/tools/golang/xenlight/helpers.gen.go
@@ -1277,6 +1277,9 @@ x.Soundhw = C.GoString(tmp.soundhw)
 if err := x.XenPlatformPci.fromC(&tmp.xen_platform_pci);err != nil {
 return fmt.Errorf("converting field XenPlatformPci: %v", err)
 }
+if err := x.XenPlatformPciBarUc.fromC(&tmp.xen_platform_pci_bar_uc);err != nil {
+return fmt.Errorf("converting field XenPlatformPciBarUc: %v", err)
+}
 if err := x.UsbdeviceList.fromC(&tmp.usbdevice_list);err != nil {
 return fmt.Errorf("converting field UsbdeviceList: %v", err)
 }
@@ -1621,6 +1624,9 @@ hvm.soundhw = C.CString(tmp.Soundhw)}
 if err := tmp.XenPlatformPci.toC(&hvm.xen_platform_pci); err != nil {
 return fmt.Errorf("converting field XenPlatformPci: %v", err)
 }
+if err := tmp.XenPlatformPciBarUc.toC(&hvm.xen_platform_pci_bar_uc); err != nil {
+return fmt.Errorf("converting field XenPlatformPciBarUc: %v", err)
+}
 if err := tmp.UsbdeviceList.toC(&hvm.usbdevice_list); err != nil {
 return fmt.Errorf("converting field UsbdeviceList: %v", err)
 }
diff --git a/tools/golang/xenlight/types.gen.go b/tools/golang/xenlight/types.gen.go
index 656933c6c9ee..61e322f20ae0 100644
--- a/tools/golang/xenlight/types.gen.go
+++ b/tools/golang/xenlight/types.gen.go
@@ -654,6 +654,7 @@ Usbdevice string
 VkbDevice Defbool
 Soundhw string
 XenPlatformPci Defbool
+XenPlatformPciBarUc Defbool
 UsbdeviceList StringList
 VendorDevice VendorDevice
 MsVmGenid MsVmGenid
-- 
2.49.0


Re: [PATCH] tools/golang: update auto-generated libxl based types
Posted by Nick Rosbrook 4 months ago
On Wed, Jul 2, 2025 at 5:56 AM Roger Pau Monne <roger.pau@citrix.com> wrote:
>
> As a result of the addition of a new field in libxl domain build info
> structure the golang types need to be regnerated, this was missing as part
> of 22650d6054.
>
> Regenerate the headers now.
>
> Reported-by: Juergen Gross <jgross@suse.com>
> Fixes: 22650d605462 ('x86/hvmloader: select xen platform pci MMIO BAR UC or WB MTRR cache attribute')
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>

Acked-by: Nick Rosbrook <enr0n@ubuntu.com>
Re: [PATCH] tools/golang: update auto-generated libxl based types
Posted by Jürgen Groß 4 months ago
On 02.07.25 11:56, Roger Pau Monne wrote:
> As a result of the addition of a new field in libxl domain build info
> structure the golang types need to be regnerated, this was missing as part
> of 22650d6054.
> 
> Regenerate the headers now.
> 
> Reported-by: Juergen Gross <jgross@suse.com>
> Fixes: 22650d605462 ('x86/hvmloader: select xen platform pci MMIO BAR UC or WB MTRR cache attribute')
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>

Reviewed-by: Juergen Gross <jgross@suse.com>


Juergen