On Sunday 10 February 2008, you wrote: > Christian Borntraeger wrote: > > struct vring_used > > { > > __u16 flags; > > __u16 idx; > > + __u32 padding; > > struct vring_used_elem ring[]; > > -}; > > +} __attribute__ ((packed)); > > > > This padding that you've put in is not something that would normally > occur on x86. I've checked with GCC on 32-bit and 64-bit and neither > would include that padding. Is that padding included on s390?
No, it is not included on any architecture that is supported by Linux. The only tricky case to watch out is if vring_used_elem contained a __u64 member. In that case, the alignment would be 32 bits on x86 and 64 bits on s390, powerpc, mips and parisc. Arnd <>< ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel