On 21.10.2022 20:02, Julien Grall wrote:
> On 26/08/2022 13:51, Carlo Nonato wrote:
>> @@ -335,6 +337,12 @@ struct xen_arch_domainconfig {
>>        *
>>        */
>>       uint32_t clock_frequency;
>> +    /* IN */
>> +    uint8_t from_guest;
> 
> There is an implicit padding here and ...
>> +    /* IN */
>> +    uint16_t num_colors;
> 
> ... here. For the ABI, we are trying to have all the padding explicit. 
> So the layout of the structure is clear.
> 
> Also, DOMCTL is an unstable ABI, so I think it would not be necessary to 
> check the padding are zeroed. If it were a stable ABI, then we would 
> need to check so they can be re-used in the future.

Independently of the other reply, a comment here as well: While domctl
being unstable does permit to omit zero checks, I think we're well
advised to still have them. The we can re-use such fields without
needing to bump the interface version.

Jan

Reply via email to