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

[Xen-devel] POSIX error names and codes in PV protocols


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Oleksandr Andrushchenko <andr2000@xxxxxxxxx>
  • Date: Thu, 26 Jan 2017 16:40:46 +0200
  • Delivery-date: Thu, 26 Jan 2017 14:40:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Hi, all!

There is some work happening on new PV protocols: sndif [1],

displif [2], PV calls [3] and the common part of those is that

error/status codes must be returned as a part of a response packet.

For that Konrad suggested [1] (and Stefano already used in [3]) POSIX

to be employed here instead of defining protocol specific error codes.

The problem I see here is that POSIX only defines names of the errors,

but not values [4]. So, in order to use POSIX one still needs to define

the values (names must be the same, but values may differ for different OSes).

So, the question is what would be the best option to

a) have those numbers defined in OS agnostic way

b) have those defined for all PV protocols

Stefano has already defined the error code values in his work [3],

but for other protocols this should be reimplemented again.


Thank you,

Oleksandr

[1] https://marc.info/?l=xen-devel&m=148528530727366&w=2

[2] https://marc.info/?l=xen-devel&m=148239440624498&w=2

[3] https://marc.info/?l=xen-devel&m=148530334732400&w=2

[4] http://pubs.opengroup.org/onlinepubs/007908799/xsh/errno.h.html


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

 


Rackspace

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