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

Re: [Xen-devel] Guidelines for new PV protocol submission

On 20/01/15 13:48, Jan Beulich wrote:
>>>> On 20.01.15 at 14:39, <andrew.cooper3@xxxxxxxxxx> wrote:
>> It is far nicer to work from a document than to worry how another
>> compiler might change the structure.
> Compilers have (almost, i.e. leaving aside bitfields) no freedom in laying
> out structures - any platform's ABI defines how this needs to be done.
> Or else code compiled with different compilers wouldn't inter-operate.

Widths of types are not consistent.

Attempting to use the Xen header files on windows requires sed because
unsigned longs are still 32 bits even on 64bit windows.  (i.e. an
unsigned long is not valid for a pointer of natural width, which occurs
even in the HVM ABI).

Assuming a posix view of the world is not good enough for the Xen
ecosystem, which is why a document is preferable to a C structure.


Xen-devel mailing list



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