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

Re: [Xen-devel] [PATCH 4/4] xen/public: arm: rework the macro set_xen_guest_handle_raw



On 03/11/15 14:18, Stefano Stabellini wrote:
>> +#define set_xen_guest_handle_raw(hnd, val)                              \
>> +    do {                                                                \
>> +        /* Check if the handle is 64-bit (i.e 8-byte) */                \
>> +        (void) sizeof(struct { int : -!!(sizeof (hnd) != 8); });        \
>> +        /* Check if the type of val is compatible with the handle */    \
>> +        (void) sizeof((val) != (hnd).p);                                \
>> +        (hnd).q = (uint64_t)(uintptr_t)(val);                           \
>>      } while ( 0 )
>>  #define set_xen_guest_handle(hnd, val) set_xen_guest_handle_raw(hnd, val)
> 
> will get_xen_guest_handle, which access (hnd).p, have undefined behaviour?

get_xen_guest_handle has been removed in staging.

Regards,

-- 
Julien Grall

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