Re: [PATCH] mshv: add a missing padding field

From: Easwar Hariharan

Date: Thu Apr 23 2026 - 13:33:38 EST


On 4/23/2026 10:29 AM, Easwar Hariharan wrote:
> On 4/23/2026 10:26 AM, wei.liu@xxxxxxxxxx wrote:
>> From: Wei Liu <wei.liu@xxxxxxxxxx>
>>
>> That was missed when importing the header.
>>
>> Reported-by: Doru Blânzeanu <dblanzeanu@xxxxxxxxxxxxxxxxxxx>
>> Reported-by: Magnus Kulke <magnuskulke@xxxxxxxxxxxxxxxxxxx>
>> Fixes: e68bda71a2384 ("hyperv: Add new Hyper-V headers in include/hyperv")
>> Cc: stable@xxxxxxxxxx
>> Signed-off-by: Wei Liu <wei.liu@xxxxxxxxxx>
>> ---
>> include/hyperv/hvhdk.h | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/include/hyperv/hvhdk.h b/include/hyperv/hvhdk.h
>> index 5e83d3714966..ff7ca9ee1bd4 100644
>> --- a/include/hyperv/hvhdk.h
>> +++ b/include/hyperv/hvhdk.h
>> @@ -79,6 +79,7 @@ struct hv_vp_register_page {
>>
>> u64 registers[18];
>> };
>> + __u8 reserved[8];
>> /* Volatile XMM registers (HV_X64_REGISTER_CLASS_XMM) */
>> union {
>> struct {
>
>
> This is not a uapi, so why not just use u8 instead of __u8?
> Or since it's 8 u8s, a u64?
>
> Thanks,
> Easwar (he/him)

Hm, occurs to me that this would be used by VMMs, but then the registers
field just above used a u64 instead of a __u64....