Re: [Xen-devel] [PATCH] x86/domctl: Improve XEN_DOMCTL_hypercall_init error handling

2015-03-11 Thread Jan Beulich
>>> 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,

[Xen-devel] [PATCH] x86/domctl: Improve XEN_DOMCTL_hypercall_init error handling

2015-03-11 Thread Andrew Cooper
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. On the libxc side, put the useful piece of information in the error message, rathe