On 20/01/15 13:48, Jan Beulich wrote:
>>>> On 20.01.15 at 14:39, <andrew.coop...@citrix.com> 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.

~Andrew


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

Reply via email to