Skip to contentSkip to conversation

golang/xenlight: Fix libxl_domain_shutdown and libxl_domain_reboot as well

PATCH In review George Dunlap 2 participants 2 messages Oct 23, 2019 – Oct 24, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 golang/xenlight: Fix libxl_domain_shutdown and libxl_domain_reboot as well

Both are now potentially asynchronous; pass in 'nil' to retain synchronous behavior.

---
Release justification: This is a bug fix for 4.13.

CC Nick Rosbrook <[email protected]>
CC Juergen Gross <[email protected]>
---
 tools/golang/xenlight/xenlight.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/golang/xenlight/xenlight.go +2 -2
index 59b8186a64..902cbb839e 100644
@@ -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)
Signature · 7 lines
2.23.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel