From: Tim Deegan Subject: Re: [PATCH 5/5] xen: Add V4V implementation - padding question Date: Tue, 11 Jun 2013 18:25:07 +0100 Message-ID: <20130611172507.GC27333@ocelot.phlegethon.org> References: <1344023454-31425-1-git-send-email-jean.guyader@citrix.com> <1344023454-31425-6-git-send-email-jean.guyader@citrix.com> <501FA05C0200007800092CD7@nat28.tlf.novell.com> <51B75A12.4050202@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <51B75A12.4050202@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ross Philipson Cc: Jan Beulich , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 13:10 -0400 on 11 Jun (1370956242), Ross Philipson wrote: > > > >>>... > >>>+struct v4v_info > >>>+{ > >>>+ uint64_t ring_magic; > >>>+ uint64_t data_magic; > >>>+ evtchn_port_t evtchn; > >> > >>Missing padding at the end? > >> > > > >ack. > > > > At one point during the review of an earlier version of the V4V patch > set, Jan requested that this pad be added to the v4v_info struct. I > understand the padding in all the other structs but I don't understand > this one. This struct is not included in any other structs and is not > followed by any data. 64-bit Xen would see this as a 24-byte struct, even without explicit padding. That would surprise a 32-bit guest that allocated what it saw as a 20-byte struct for Xen to copy into. Tim.