Mailing List Archive

[RESEND PATCH 10/12] golang/xenlight: add SendTrigger wrapper
Add a warpper around libxl_send_trigger.

Signed-off-by: Nick Rosbrook <rosbrookn@ainfosec.com>
---
tools/golang/xenlight/xenlight.go | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/tools/golang/xenlight/xenlight.go b/tools/golang/xenlight/xenlight.go
index 1e0ed109e4..d153feb851 100644
--- a/tools/golang/xenlight/xenlight.go
+++ b/tools/golang/xenlight/xenlight.go
@@ -1367,3 +1367,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
+}
--
2.17.1
Re: [RESEND PATCH 10/12] golang/xenlight: add SendTrigger wrapper [ In reply to ]
> On May 24, 2021, at 9:36 PM, Nick Rosbrook <rosbrookn@gmail.com> wrote:
>
> Add a warpper around libxl_send_trigger.
>
> Signed-off-by: Nick Rosbrook <rosbrookn@ainfosec.com>

Reviewed-by: George Dunlap <george.dunlap@citrix.com>