All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pc: e820 qemu_cfg tables need to be packed
@ 2010-10-14 18:33 ` Alex Williamson
  0 siblings, 0 replies; 19+ messages in thread
From: Alex Williamson @ 2010-10-14 18:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: kvm, jes.sorensen, anthony, alex.williamson

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] 19+ messages in thread

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

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.