From patchwork Fri Oct 15 04:08:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 255281 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9F48UrC013402 for ; Fri, 15 Oct 2010 04:08:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750856Ab0JOEIZ (ORCPT ); Fri, 15 Oct 2010 00:08:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14986 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780Ab0JOEIY (ORCPT ); Fri, 15 Oct 2010 00:08:24 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9F48Ice006975 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 Oct 2010 00:08:19 -0400 Received: from s20.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9F48HV3029883; Fri, 15 Oct 2010 00:08:18 -0400 From: Alex Williamson Subject: [PATCH v2] pc: e820 qemu_cfg tables need to be packed To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, jes.sorensen@redhat.com, anthony@codemonkey.ws, alex.williamson@redhat.com, arnd@arndb.de Date: Thu, 14 Oct 2010 22:08:17 -0600 Message-ID: <20101015040706.3828.71113.stgit@s20.home> In-Reply-To: <20101014183249.23510.29196.stgit@s20.home> References: <20101014183249.23510.29196.stgit@s20.home> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 15 Oct 2010 04:08:31 +0000 (UTC) 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;