|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XTF PATCH v1 07/15] common: enable XEN_DOMCTL_debug_op domctl
From: Denis Mukhin <dmukhin@xxxxxxxx>
Signed-off-by: Denis Mukhin <dmukhin@xxxxxxxx>
---
include/xen/domctl.h | 63 +++++++++++++++++++++++++++++++++++++++++
include/xtf/hypercall.h | 6 ++++
2 files changed, 69 insertions(+)
create mode 100644 include/xen/domctl.h
diff --git a/include/xen/domctl.h b/include/xen/domctl.h
new file mode 100644
index 000000000000..5c3241d503d1
--- /dev/null
+++ b/include/xen/domctl.h
@@ -0,0 +1,63 @@
+/* SPDX-License-Identifier: MIT */
+/******************************************************************************
+ * domctl.h
+ *
+ * Domain management operations. For use by node control stack.
+ *
+ * Copyright (c) 2002-2003, B Dragovic
+ * Copyright (c) 2002-2006, K Fraser
+ */
+
+#ifndef __XEN_PUBLIC_DOMCTL_H__
+#define __XEN_PUBLIC_DOMCTL_H__
+
+#include "xen.h"
+
+/*
+ * The interface version needs to be incremented by 1 in case the interface
+ * is modified in an incompatible way AND if the version hasn't been
+ * incremented in the current development cycle already.
+ * Pure additions (e.g. new sub-commands) or compatible interface changes
+ * (e.g. adding semantics to 0-checked input fields or data to zeroed output
+ * fields) don't require a change of the version.
+ * Stable ops are NOT covered by XEN_DOMCTL_INTERFACE_VERSION!
+ *
+ * Last version bump: Xen 4.23
+ */
+#define XEN_DOMCTL_INTERFACE_VERSION 0x00000019
+
+/* XEN_DOMCTL_debug_op */
+#define XEN_DOMCTL_DEBUG_OP_SINGLE_STEP_OFF 0
+#define XEN_DOMCTL_DEBUG_OP_SINGLE_STEP_ON 1
+#define XEN_DOMCTL_DEBUG_OP_POSTED_INTR 3
+struct xen_domctl_debug_op {
+ uint32_t op; /* IN */
+ uint32_t vcpu; /* IN */
+ uint32_t arg; /* IN */
+};
+
+struct xen_domctl {
+/* Stable domctl ops: interface_version is required to be 0. */
+ uint32_t cmd;
+#define XEN_DOMCTL_debug_op 54
+ uint32_t interface_version; /* XEN_DOMCTL_INTERFACE_VERSION */
+ domid_t domain;
+ uint16_t _pad[3];
+ union {
+ struct xen_domctl_debug_op debug_op;
+ uint8_t pad[128];
+ } u;
+};
+typedef struct xen_domctl xen_domctl_t;
+
+#endif /* __XEN_PUBLIC_DOMCTL_H__ */
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
diff --git a/include/xtf/hypercall.h b/include/xtf/hypercall.h
index 9d6d901d1668..61127eeae174 100644
--- a/include/xtf/hypercall.h
+++ b/include/xtf/hypercall.h
@@ -42,6 +42,7 @@ extern uint8_t hypercall_page[PAGE_SIZE];
#include <xen/hvm/hvm_op.h>
#include <xen/hvm/hvm_vcpu.h>
#include <xen/hvm/params.h>
+#include <xen/domctl.h>
#include <xen/memory.h>
#include <xen/physdev.h>
#include <xen/sched.h>
@@ -185,6 +186,11 @@ static inline long hypercall_sysctl(xen_sysctl_t *arg)
return HYPERCALL1(long, __HYPERVISOR_sysctl, arg);
}
+static inline long hypercall_domctl(xen_domctl_t *arg)
+{
+ return HYPERCALL1(long, __HYPERVISOR_domctl, arg);
+}
+
static inline long hypercall_argo_op(unsigned int cmd, void *arg1, void *arg2,
unsigned long arg3, unsigned long arg4)
{
--
2.55.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |