summaryrefslogtreecommitdiffstats
path: root/tests/libqos/rtas.h
diff options
context:
space:
mode:
authorLaurent Vivier2016-09-13 14:52:45 +0200
committerDavid Gibson2016-09-23 02:29:40 +0200
commiteeddd59f59626302cdb7db2602140ac9a076dec9 (patch)
treee9fb34851f9bc721687c42525552ff1c8119a0ef /tests/libqos/rtas.h
parentlibqos: define SPAPR libqos functions (diff)
downloadqemu-eeddd59f59626302cdb7db2602140ac9a076dec9.tar.gz
qemu-eeddd59f59626302cdb7db2602140ac9a076dec9.tar.xz
qemu-eeddd59f59626302cdb7db2602140ac9a076dec9.zip
tests: add RTAS command in the protocol
Add a first test to validate the protocol: - rtas/get-time-of-day compares the time from the guest with the time from the host. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/libqos/rtas.h')
-rw-r--r--tests/libqos/rtas.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/libqos/rtas.h b/tests/libqos/rtas.h
new file mode 100644
index 0000000000..a1b60a8eb4
--- /dev/null
+++ b/tests/libqos/rtas.h
@@ -0,0 +1,11 @@
+/*
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+#ifndef LIBQOS_RTAS_H
+#define LIBQOS_RTAS_H
+#include "libqos/malloc.h"
+
+int qrtas_get_time_of_day(QGuestAllocator *alloc, struct tm *tm, uint32_t *ns);
+#endif /* LIBQOS_RTAS_H */