From: George Dunlap <george.dunlap@citrix.com>
To: Roger Pau Monne <roger.pau@citrix.com>, xen-devel@lists.xenproject.org
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Jan Beulich <jbeulich@suse.com>
Subject: Re: [PATCH v2 for-4.6 2/3] xen: replace non-POSIX error codes
Date: Wed, 22 Jul 2015 12:12:36 +0100 [thread overview]
Message-ID: <55AF7AA4.2050603@citrix.com> (raw)
In-Reply-To: <1437563272-14168-3-git-send-email-roger.pau@citrix.com>
On 07/22/2015 12:07 PM, Roger Pau Monne wrote:
> Some DOMCTLs returned non-POSIX error codes, replace them with POSIX
> compilant values instead. EBADRQC and EBADSLT are replaced by EDOM, while
> EUSERS is replaced with EOVERFLOW.
>
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> Cc: George Dunlap <george.dunlap@eu.citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Andrew Cooper <andrew.cooper3@citrix.com>
> ---
> Changes since v1:
> - Use EDOM instead of EINVAL.
> ---
> Nothing in libxc or libxl seems to check for those specific error codes, so
> I guess it's fine to replace them with whatever we want.
> ---
> xen/arch/x86/mm/paging.c | 2 +-
> xen/common/domain.c | 4 ++--
> xen/common/hvm/save.c | 2 +-
> 3 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/xen/arch/x86/mm/paging.c b/xen/arch/x86/mm/paging.c
> index 7089155..9bd54a8 100644
> --- a/xen/arch/x86/mm/paging.c
> +++ b/xen/arch/x86/mm/paging.c
> @@ -766,7 +766,7 @@ long paging_domctl_continuation(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl)
>
> if ( op.interface_version != XEN_DOMCTL_INTERFACE_VERSION ||
> op.cmd != XEN_DOMCTL_shadow_op )
> - return -EBADRQC;
> + return -EDOM;
mm bit:
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Since this is internal, this isn't even a bike shed -- it's debating the
color of the insulation on the pipes in the basement. Feel free to
retain this Ack even if you end up changing this particular errno to
something else again.
-George
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-07-22 11:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-22 11:07 [PATCH v2 for-4.6 0/3] Get rid of non-POSIX error codes Roger Pau Monne
2015-07-22 11:07 ` [PATCH v2 for-4.6 1/3] xen/x86/libxl: replace non-POSIX error codes used by PSR code Roger Pau Monne
2015-07-22 12:40 ` Wei Liu
2015-07-22 11:07 ` [PATCH v2 for-4.6 2/3] xen: replace non-POSIX error codes Roger Pau Monne
2015-07-22 11:12 ` George Dunlap [this message]
2015-07-22 12:00 ` Jan Beulich
2015-07-22 11:07 ` [PATCH v2 for-4.6 3/3] xen: remove " Roger Pau Monne
2015-07-22 14:16 ` Ian Campbell
2015-07-22 14:55 ` Jan Beulich
2015-07-22 12:02 ` [PATCH v2 for-4.6 0/3] Get rid of " Jan Beulich
2015-07-22 12:26 ` Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55AF7AA4.2050603@citrix.com \
--to=george.dunlap@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.