Re: [PATCH v4] x86/hyper-v: Mark TLFS structures packed

2018-12-14 Thread Paolo Bonzini
On 12/12/18 18:57, Vitaly Kuznetsov wrote: > The TLFS structures are used for hypervisor-guest communication and must > exactly meet the specification. > > Compilers can add alignment padding to structures or reorder struct members > for randomization and optimization, which would break the hyperv

[PATCH v4] x86/hyper-v: Mark TLFS structures packed

2018-12-12 Thread Vitaly Kuznetsov
The TLFS structures are used for hypervisor-guest communication and must exactly meet the specification. Compilers can add alignment padding to structures or reorder struct members for randomization and optimization, which would break the hypervisor ABI. Mark the structures as packed to prevent t