[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH for-4.6 2/3] xen: replace non-POSIX error codes



On Wed, Jul 22, 2015 at 10:43 AM, George Dunlap
<George.Dunlap@xxxxxxxxxxxxx> wrote:
> On Tue, Jul 21, 2015 at 5:15 PM, Jan Beulich <JBeulich@xxxxxxxx> wrote:
>>>>> On 21.07.15 at 17:56, <roger.pau@xxxxxxxxxx> wrote:
>>> Some DOMCTLs returned non-POSIX error codes, replace them with POSIX
>>> compilant values instead. EBADRQC and EBADSLT are replaced by EINVAL, while
>>> EUSERS is replaced with EOVERFLOW.
>>
>> Same here basically - I'd appreciate if we could use EINVAL only as
>> a last resort error value, to make errors distinguishable.
>
> What would be more helpful is if you suggested an alternate error code
> for the two EINVAL changes in this patch.

Sorry, I see you did suggest alternates in the other mail.  I retract
my complaint...

> In the case of the first one, it looks like this is an "internal"
> hypercall used only to do continuation of paging domctls.  Guests
> should never call this directly; -EINVAL seems perfectly suitable
> here.

But still think EINVAL is probably fine for this case.

 -George

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.