aboutsummaryrefslogtreecommitdiff
path: root/original/uapi/xen/evtchn.h
diff options
context:
space:
mode:
Diffstat (limited to 'original/uapi/xen/evtchn.h')
-rw-r--r--original/uapi/xen/evtchn.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/original/uapi/xen/evtchn.h b/original/uapi/xen/evtchn.h
index 14e833e..cb4aa4b 100644
--- a/original/uapi/xen/evtchn.h
+++ b/original/uapi/xen/evtchn.h
@@ -85,4 +85,19 @@ struct ioctl_evtchn_notify {
#define IOCTL_EVTCHN_RESET \
_IOC(_IOC_NONE, 'E', 5, 0)
+/*
+ * Restrict this file descriptor so that it can only be used to bind
+ * new interdomain events from one domain.
+ *
+ * Once a file descriptor has been restricted it cannot be
+ * de-restricted, and must be closed and re-opened. Event channels
+ * which were bound before restricting remain bound afterwards, and
+ * can be notified as usual.
+ */
+#define IOCTL_EVTCHN_RESTRICT_DOMID \
+ _IOC(_IOC_NONE, 'E', 6, sizeof(struct ioctl_evtchn_restrict_domid))
+struct ioctl_evtchn_restrict_domid {
+ domid_t domid;
+};
+
#endif /* __LINUX_PUBLIC_EVTCHN_H__ */