From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=42902 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEU1c-0003Ka-SU for qemu-devel@nongnu.org; Fri, 05 Nov 2010 17:40:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PEU1a-00005C-Nz for qemu-devel@nongnu.org; Fri, 05 Nov 2010 17:40:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PEU1a-0008WI-Gw for qemu-devel@nongnu.org; Fri, 05 Nov 2010 17:40:42 -0400 From: Alex Williamson Date: Fri, 05 Nov 2010 15:40:38 -0600 Message-ID: <20101105214030.31799.12838.stgit@s20.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2 RESEND] pc: e820 qemu_cfg tables need to be packed List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jes.sorensen@redhat.com, alex.williamson@redhat.com We can't let the compiler define the alignment for qemu_cfg data. Signed-off-by: Alex Williamson --- hw/pc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 69b13bf..0264e3d 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -75,12 +75,12 @@ struct e820_entry { uint64_t address; uint64_t length; uint32_t type; -}; +} __attribute((__packed__, __aligned__(4))); struct e820_table { uint32_t count; struct e820_entry entry[E820_NR_ENTRIES]; -}; +} __attribute((__packed__, __aligned__(4))); static struct e820_table e820_table;