qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] pc: e820 qemu_cfg tables need to be packed
@ 2010-10-14 18:33 Alex Williamson
  2010-10-14 19:44 ` [Qemu-devel] " Jes Sorensen
  2010-10-15  4:08 ` [Qemu-devel] [PATCH v2] " Alex Williamson
  0 siblings, 2 replies; 11+ messages in thread
From: Alex Williamson @ 2010-10-14 18:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: jes.sorensen, alex.williamson, kvm

We can't let the compiler define the alignment for qemu_cfg data.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---

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;
 

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-10-15 10:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14 18:33 [Qemu-devel] [PATCH] pc: e820 qemu_cfg tables need to be packed Alex Williamson
2010-10-14 19:44 ` [Qemu-devel] " Jes Sorensen
2010-10-14 19:48   ` Anthony Liguori
2010-10-14 19:58     ` Alex Williamson
2010-10-14 19:59       ` Anthony Liguori
2010-10-14 20:20       ` Arnd Bergmann
2010-10-14 20:59         ` Alex Williamson
2010-10-14 21:19           ` Arnd Bergmann
2010-10-15  4:01             ` Alex Williamson
2010-10-15  4:08 ` [Qemu-devel] [PATCH v2] " Alex Williamson
2010-10-15 10:20   ` [Qemu-devel] " Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).