[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] golang/xenlight: Fix libxl_domain_shutdown and libxl_domain_reboot as well



commit 7b4c3d0443b59a0c9d74b50000a97467a8d3236f
Author:     George Dunlap <george.dunlap@xxxxxxxxxx>
AuthorDate: Fri Nov 15 09:36:58 2019 +0000
Commit:     George Dunlap <george.dunlap@xxxxxxxxxx>
CommitDate: Fri Nov 15 09:36:58 2019 +0000

    golang/xenlight: Fix libxl_domain_shutdown and libxl_domain_reboot as well
    
    Both are now potentially asynchronous; pass in 'nil' to retain
    synchronous behavior.
    
    Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxx>
    Release-acked-by: Juergen Gross <jgross@xxxxxxxx>
---
 tools/golang/xenlight/xenlight.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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)
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.