[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 at 15:00, <andrew.cooper3@xxxxxxxxxx> wrote:
> 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.

Hence the need to use fixed-width ones (and explicit padding).

> 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).

I think we made quite a bit of progress eliminating the uses of "long"
in the public headers.

Jan


_______________________________________________
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®.