From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36952 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6Sck-0002xH-94 for qemu-devel@nongnu.org; Thu, 14 Oct 2010 14:33:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6Sci-0006PB-Ah for qemu-devel@nongnu.org; Thu, 14 Oct 2010 14:33:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6Sci-0006Ov-4Q for qemu-devel@nongnu.org; Thu, 14 Oct 2010 14:33:52 -0400 From: Alex Williamson Date: Thu, 14 Oct 2010 12:33:47 -0600 Message-ID: <20101014183249.23510.29196.stgit@s20.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] 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, kvm@vger.kernel.org We can't let the compiler define the alignment for qemu_cfg data. Signed-off-by: Alex Williamson --- 0.13 stable candidate? hw/pc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 69b13bf..90839bd 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__)); struct e820_table { uint32_t count; struct e820_entry entry[E820_NR_ENTRIES]; -}; +} __attribute__((__packed__)); static struct e820_table e820_table;