projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b6d865
)
golang/xenlight: add SendTrigger wrapper
author
Nick Rosbrook
<rosbrookn@gmail.com>
Mon, 24 May 2021 20:36:51 +0000
(16:36 -0400)
committer
George Dunlap
<george.dunlap@citrix.com>
Mon, 21 Jun 2021 15:49:08 +0000
(16:49 +0100)
Add a warpper around libxl_send_trigger.
Signed-off-by: Nick Rosbrook <rosbrookn@ainfosec.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
tools/golang/xenlight/xenlight.go
patch
|
blob
|
history
diff --git
a/tools/golang/xenlight/xenlight.go
b/tools/golang/xenlight/xenlight.go
index f605f176134e37c31c369a155ad22b4c856e27aa..a651554d0cde63cf052a36b64c52f8532d5c9731 100644
(file)
--- a/
tools/golang/xenlight/xenlight.go
+++ b/
tools/golang/xenlight/xenlight.go
@@
-1282,3
+1282,14
@@
func (ctx *Context) DomainDestroy(domid Domid) error {
return nil
}
+
+// SendTrigger sends a Trigger to the domain specified by domid.
+func (ctx *Context) SendTrigger(domid Domid, trigger Trigger, vcpuid int) error {
+ ret := C.libxl_send_trigger(ctx.ctx, C.uint32_t(domid),
+ C.libxl_trigger(trigger), C.uint32_t(vcpuid), nil)
+ if ret != 0 {
+ return Error(ret)
+ }
+
+ return nil
+}