From: "Jan Beulich" Subject: Re: [PATCH] x86/domctl: Improve XEN_DOMCTL_hypercall_init error handling Date: Wed, 11 Mar 2015 13:42:15 +0000 Message-ID: <5500544702000078000688C8@mail.emea.novell.com> References: <1426078593-11045-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1426078593-11045-1-git-send-email-andrew.cooper3@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Ian Jackson , Wei Liu , Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 11.03.15 at 13:56, wrote: > EACCES cannot be distinguished against an incorrect DOMCTL_INTERFACE_VERSION, > and will cause an incorrect "need to rebuild the user-space tool set?" > message > from libxc. EINVAL is a perfectly reasonable alternative. I'm okay with this for the !page case, but I think -EPERM or some such would be better suited when the page is non-writable but otherwise valid. Jan