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

[Xen-changelog] [xen staging] golang/xenlight: fix calls to libxl_domain_unpause/pause



commit 228a0255c68723a4e999b5c45c75763bf7722434
Author:     Nick Rosbrook <rosbrookn@xxxxxxxxxxxx>
AuthorDate: Tue Oct 22 15:06:59 2019 +0100
Commit:     George Dunlap <george.dunlap@xxxxxxxxxx>
CommitDate: Tue Oct 22 15:06:59 2019 +0100

    golang/xenlight: fix calls to libxl_domain_unpause/pause
    
    These functions require a third argument of type const *libxl_asyncop_how.
    
    Pass nil to fix compilation errors. This will have the effect of
    performing these operations synchronously.
    
    Signed-off-by: Nick Rosbrook <rosbrookn@xxxxxxxxxxxx>
    Reviewed-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 f5d171c2d5..59b8186a64 100644
--- a/tools/golang/xenlight/xenlight.go
+++ b/tools/golang/xenlight/xenlight.go
@@ -1011,7 +1011,7 @@ func (Ctx *Context) DomainUnpause(Id Domid) (err error) {
                return
        }
 
-       ret := C.libxl_domain_unpause(Ctx.ctx, C.uint32_t(Id))
+       ret := C.libxl_domain_unpause(Ctx.ctx, C.uint32_t(Id), nil)
 
        if ret != 0 {
                err = Error(-ret)
@@ -1026,7 +1026,7 @@ func (Ctx *Context) DomainPause(id Domid) (err error) {
                return
        }
 
-       ret := C.libxl_domain_pause(Ctx.ctx, C.uint32_t(id))
+       ret := C.libxl_domain_pause(Ctx.ctx, C.uint32_t(id), nil)
 
        if ret != 0 {
                err = Error(-ret)
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
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®.