xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] domctl.h: document non-standard error codes for enabling paging/access
@ 2012-04-03 15:24 Olaf Hering
  2012-04-05 10:09 ` Tim Deegan
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2012-04-03 15:24 UTC (permalink / raw)
  To: xen-devel; +Cc: Tim Deegan

# HG changeset patch
# User Olaf Hering <olaf@aepfle.de>
# Date 1333466579 -7200
# Node ID 77e9be40fbc8ef0df02e49e74496320729eccb09
# Parent  72fc7f65e34f9215af0cb73417ddd47ee0f3bc79
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>

diff -r 72fc7f65e34f -r 77e9be40fbc8 xen/include/public/domctl.h
--- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] domctl.h: document non-standard error codes for enabling paging/access
  2012-04-03 15:24 [PATCH] domctl.h: document non-standard error codes for enabling paging/access Olaf Hering
@ 2012-04-05 10:09 ` Tim Deegan
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Deegan @ 2012-04-05 10:09 UTC (permalink / raw)
  To: Olaf Hering; +Cc: xen-devel

At 17:24 +0200 on 03 Apr (1333473842), Olaf Hering wrote:
> 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>

Applied, thanks.

Tim.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-05 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03 15:24 [PATCH] domctl.h: document non-standard error codes for enabling paging/access Olaf Hering
2012-04-05 10:09 ` Tim Deegan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).