aboutsummaryrefslogtreecommitdiff
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorJoao Martins <joao.m.martins@oracle.com>2018-08-21 12:16:19 -0400
committerDavid Woodhouse <dwmw@amazon.co.uk>2023-03-01 08:22:50 +0000
commit507cb64d6e66d672bfddb275fe746241e0ed8db2 (patch)
tree4a45cf6af82dcfed99dfc60f2fa2af7b8e189d08 /hmp-commands.hx
parenta15b10978fe62411936e577288f28184a41754a9 (diff)
downloadqemu-507cb64d6e66d672bfddb275fe746241e0ed8db2.zip
qemu-507cb64d6e66d672bfddb275fe746241e0ed8db2.tar.gz
qemu-507cb64d6e66d672bfddb275fe746241e0ed8db2.tar.bz2
i386/xen: add monitor commands to test event injection
Specifically add listing, injection of event channels. Signed-off-by: Joao Martins <joao.m.martins@oracle.com> Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Paul Durrant <paul@xen.org>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx29
1 files changed, 29 insertions, 0 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index fbb5daf..b87c250 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -1815,3 +1815,32 @@ SRST
Dump the FDT in dtb format to *filename*.
ERST
#endif
+
+#if defined(CONFIG_XEN_EMU)
+ {
+ .name = "xen-event-inject",
+ .args_type = "port:i",
+ .params = "port",
+ .help = "inject event channel",
+ .cmd = hmp_xen_event_inject,
+ },
+
+SRST
+``xen-event-inject`` *port*
+ Notify guest via event channel on port *port*.
+ERST
+
+
+ {
+ .name = "xen-event-list",
+ .args_type = "",
+ .params = "",
+ .help = "list event channel state",
+ .cmd = hmp_xen_event_list,
+ },
+
+SRST
+``xen-event-list``
+ List event channels in the guest
+ERST
+#endif