aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/public/domctl.h
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2012-04-03 17:22:59 +0200
committerOlaf Hering <olaf@aepfle.de>2012-04-03 17:22:59 +0200
commitcf705ff84bf2c911dfca2a3f3aeb130d110701bf (patch)
tree814484b17f7e7ddbd373028728acfe0f3fd9e3f2 /xen/include/public/domctl.h
parent2f84bdc38b94ec6f4dff53051e39d9f8cc168de6 (diff)
downloadxen-cf705ff84bf2c911dfca2a3f3aeb130d110701bf.tar.gz
xen-cf705ff84bf2c911dfca2a3f3aeb130d110701bf.tar.bz2
xen-cf705ff84bf2c911dfca2a3f3aeb130d110701bf.zip
domctl.h: document non-standard error codes for enabling paging/access
The domctl to enable paging and access returns some non-standard error codes after failure. This can be used in the tools to print specific error messages. xenpaging recognizes these errno values and shows them if the init function fails. Document the return codes in the public header file. Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Tim Deegan <tim@xen.org> Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/include/public/domctl.h')
-rw-r--r--xen/include/public/domctl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h
index 494520743d..240ceb9cac 100644
--- a/xen/include/public/domctl.h
+++ b/xen/include/public/domctl.h
@@ -716,6 +716,13 @@ struct xen_domctl_gdbsx_domstatus {
* Domctl interface to set up and tear down the
* pager<->hypervisor interface. Use XENMEM_paging_op*
* to perform per-page operations.
+ *
+ * The XEN_DOMCTL_MEM_EVENT_OP_PAGING_ENABLE domctl returns several
+ * non-standard error codes to indicate why paging could not be enabled:
+ * ENODEV - host lacks HAP support (EPT/NPT) or HAP is disabled in guest
+ * EMLINK - guest has iommu passthrough enabled
+ * EXDEV - guest has PoD enabled
+ * EBUSY - guest has or had paging enabled, ring buffer still active
*/
#define XEN_DOMCTL_MEM_EVENT_OP_PAGING 1
@@ -735,6 +742,11 @@ struct xen_domctl_gdbsx_domstatus {
*
* The memory event handler can then resume the VCPU and redo the access
* with a XENMEM_access_op_resume hypercall.
+ *
+ * The XEN_DOMCTL_MEM_EVENT_OP_ACCESS_ENABLE domctl returns several
+ * non-standard error codes to indicate why access could not be enabled:
+ * ENODEV - host lacks HAP support (EPT/NPT) or HAP is disabled in guest
+ * EBUSY - guest has or had access enabled, ring buffer still active
*/
#define XEN_DOMCTL_MEM_EVENT_OP_ACCESS 2