From patchwork Thu Oct 14 18:33:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 253911 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 o9EIXt0o005541 for ; Thu, 14 Oct 2010 18:33:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755917Ab0JNSdw (ORCPT ); Thu, 14 Oct 2010 14:33:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27518 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755899Ab0JNSdw (ORCPT ); Thu, 14 Oct 2010 14:33:52 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9EIXnk3011244 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 14 Oct 2010 14:33:49 -0400 Received: from s20.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9EIXlXB008418; Thu, 14 Oct 2010 14:33:48 -0400 From: Alex Williamson Subject: [PATCH] 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 Date: Thu, 14 Oct 2010 12:33:47 -0600 Message-ID: <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.21 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]); Thu, 14 Oct 2010 18:33:56 +0000 (UTC) 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;