golang/xenlight: Fix libxl_domain_shutdown and libxl_domain_reboot as well
diff mbox series

Message ID 20191023162358.7222-1-george.dunlap@citrix.com
State New
Headers show
Series
  • golang/xenlight: Fix libxl_domain_shutdown and libxl_domain_reboot as well
Related show

Commit Message

George Dunlap Oct. 23, 2019, 4:23 p.m. UTC
Both are now potentially asynchronous; pass in 'nil' to retain
synchronous behavior.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
---
Release justification: This is a bug fix for 4.13.

CC: Nick Rosbrook <rosbrookn@ainfosec.com>
CC: Juergen Gross <jgross@suse.com>
---
 tools/golang/xenlight/xenlight.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Jürgen Groß Oct. 24, 2019, 8:05 a.m. UTC | #1
On 23.10.19 18:23, George Dunlap wrote:
> Both are now potentially asynchronous; pass in 'nil' to retain
> synchronous behavior.
> 
> Signed-off-by: George Dunlap <george.dunlap@citrix.com>

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


Juergen

Patch
diff mbox series

diff --git a/tools/golang/xenlight/xenlight.go b/tools/golang/xenlight/xenlight.go
index 59b8186a64..902cbb839e 100644
--- a/tools/golang/xenlight/xenlight.go
+++ b/tools/golang/xenlight/xenlight.go
@@ -1041,7 +1041,7 @@  func (Ctx *Context) DomainShutdown(id Domid) (err error) {
 		return
 	}
 
-	ret := C.libxl_domain_shutdown(Ctx.ctx, C.uint32_t(id))
+	ret := C.libxl_domain_shutdown(Ctx.ctx, C.uint32_t(id), nil)
 
 	if ret != 0 {
 		err = Error(-ret)
@@ -1056,7 +1056,7 @@  func (Ctx *Context) DomainReboot(id Domid) (err error) {
 		return
 	}
 
-	ret := C.libxl_domain_reboot(Ctx.ctx, C.uint32_t(id))
+	ret := C.libxl_domain_reboot(Ctx.ctx, C.uint32_t(id), nil)
 
 	if ret != 0 {
 		err = Error(-ret)