[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH for-4.18 2/2] golang: Fix bindings after XSA-443
- To: Jason Andryuk <jandryuk@xxxxxxxxx>
- From: Henry Wang <Henry.Wang@xxxxxxx>
- Date: Sat, 4 Nov 2023 02:16:07 +0000
- Accept-language: zh-CN, en-US
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=23ocd15KxNKHpMt7BDapiYDfvLJQwt/++ZubtLmI0bo=; b=OfU94rgCfl5GerroLYIsj2xLNaEgSXdZACaQZpwHhc6un4jt8bRnqwwYlpSlnSwz512OT4kUEGLqMIwRNp7vyDAtQe8/vzEp71CjM3J8stsOnxGAqpo43owTR1M14yvAd6SGNXvcxzc/8WmHIlS8RIrN0j/7AElKPlKoK3ttsunpM4+vNFRLZJgYb52kEJ5OnkUTaXETTm68+oPNPHNhMW023JuI9G4gmU1Hzbx7/3B/5sYqi2yGve4d3B0w9efs7poBZIvqDTkcEeMGNMLuQ/l1iHbHkPiN0eWIA6VFnQTJIGjf45ydhRgLPv0Kk0caPTURPCNx1Lqiz+zdGZJK8A==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=23ocd15KxNKHpMt7BDapiYDfvLJQwt/++ZubtLmI0bo=; b=GMdU/Y0SoG2W3ConjG5t3PxANJhUXMHEjSPS1+zDDGEvSSP2xvmfuPpDuSeoBBM57wyA2Eq+N4/tS1Hre4XbYSzKQJd20oEqZii9Q7wb/ojOE/qjtVZbphP+JqGepytP7mcXg7lwNoON7WYUyCyXcv0z5QgddpecuEMSGllBP/IVpVvx6xxBQhhQaTxNZfdaHeMKOZWGMvdu0Yn9NGqlAeIYPQWVGQa3dzCdN47Ak65pxEoX08nh+agokaDmFtsM0ynDd5LZFbLJ+vu6GXSHfP54XvbfzqgH7/4LdWLA0bRqHMwnm5xx0QfNnm7FDmQlHrzPzB1wNcF9L4JKxwmDKQ==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=HvjITBzraaf9crlP7QaPnvRt80NO+UN5A2V58BTkrSaSujttvL2g131nQXiEPa23uFLNALO8VoLpEZ/oYSb4uF/3LnSRoxs+4kAoJiURlLeKu/4Am6ixoOzrYGDhlkl69VVMtLjoaCIDp1UtOwAbniDjF4J0VRgQZO/n89Pf3Zlxbr/es84bEuENTtHxJ5rrdXBtha3RBE4cj8s86lNeBB/GFvC4H2r4RxaI9wXkrSTJnhs+WiYRI75n+kofkZLNbcVkl3p59isVBJzMDLXlXsrl3ou4LUyGNFRn6CXQdL01Kii3nUY+kl7LPBH4bbn34OiYvm4CADv6waXVoiZUiw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JVF2snktdroo1BWppp5Cf1Xy16fe9Swp6Ga+qWnmZAQVlC8zBHbZqVk/A7AraJZ6mDLbLTXOzPQmadJunFBUiXiqBFBNGJAaF+rMzy7LeF3X9tFqNMe08NWdJSFs4/LFfD4hkdKG80WpCXwdjrtr2qlTGcSdwmiD9/yzhT7NIlFEP95OPnP3j9u6M6kIudrBwQ8njXC/o3tszlQtI5VGq0XYFRK+N0nnP3W+cwjiPMiv3rZJDVrNwSTW+JlpmZQ4O14OolMrrokitQka0KL/x2of89j++UIvPC5/2iKWSOMOWou8zzOsiO68Ld9ESRrYfVM3ZQz1C/CN3wp4KuhanQ==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Nick Rosbrook <rosbrookn@xxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
- Delivery-date: Sat, 04 Nov 2023 02:16:26 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHaDo6Aq26qQwXlX02gTo8hbJL1+rBpbJIA
- Thread-topic: [PATCH for-4.18 2/2] golang: Fix bindings after XSA-443
Hi Jason,
> On Nov 4, 2023, at 03:45, Jason Andryuk <jandryuk@xxxxxxxxx> wrote:
>
> The new bootloader_restrict and bootloader_user fields in the libxl idl
> change the bindings. Update them.
>
> Fixes: 1f762642d2ca ("libxl: add support for running bootloader in restricted
> mode")
> Signed-off-by: Jason Andryuk <jandryuk@xxxxxxxxx>
Release-acked-by: Henry Wang <Henry.Wang@xxxxxxx>
Kind regards,
Henry
> ---
> tools/golang/xenlight/helpers.gen.go | 9 +++++++++
> tools/golang/xenlight/types.gen.go | 2 ++
> 2 files changed, 11 insertions(+)
>
> diff --git a/tools/golang/xenlight/helpers.gen.go
> b/tools/golang/xenlight/helpers.gen.go
> index 3ecffdf0ef..35e209ff1b 100644
> --- a/tools/golang/xenlight/helpers.gen.go
> +++ b/tools/golang/xenlight/helpers.gen.go
> @@ -1112,6 +1112,10 @@ x.Bootloader = C.GoString(xc.bootloader)
> if err := x.BootloaderArgs.fromC(&xc.bootloader_args);err != nil {
> return fmt.Errorf("converting field BootloaderArgs: %v", err)
> }
> +if err := x.BootloaderRestrict.fromC(&xc.bootloader_restrict);err != nil {
> +return fmt.Errorf("converting field BootloaderRestrict: %v", err)
> +}
> +x.BootloaderUser = C.GoString(xc.bootloader_user)
> x.TimerMode = TimerMode(xc.timer_mode)
> if err := x.NestedHvm.fromC(&xc.nested_hvm);err != nil {
> return fmt.Errorf("converting field NestedHvm: %v", err)
> @@ -1465,6 +1469,11 @@ xc.bootloader = C.CString(x.Bootloader)}
> if err := x.BootloaderArgs.toC(&xc.bootloader_args); err != nil {
> return fmt.Errorf("converting field BootloaderArgs: %v", err)
> }
> +if err := x.BootloaderRestrict.toC(&xc.bootloader_restrict); err != nil {
> +return fmt.Errorf("converting field BootloaderRestrict: %v", err)
> +}
> +if x.BootloaderUser != "" {
> +xc.bootloader_user = C.CString(x.BootloaderUser)}
> xc.timer_mode = C.libxl_timer_mode(x.TimerMode)
> if err := x.NestedHvm.toC(&xc.nested_hvm); err != nil {
> return fmt.Errorf("converting field NestedHvm: %v", err)
> diff --git a/tools/golang/xenlight/types.gen.go
> b/tools/golang/xenlight/types.gen.go
> index 6a9ebb3fec..7907aa8999 100644
> --- a/tools/golang/xenlight/types.gen.go
> +++ b/tools/golang/xenlight/types.gen.go
> @@ -577,6 +577,8 @@ DeviceTree string
> Acpi Defbool
> Bootloader string
> BootloaderArgs StringList
> +BootloaderRestrict Defbool
> +BootloaderUser string
> TimerMode TimerMode
> NestedHvm Defbool
> Apic Defbool
> --
> 2.41.0
>
|