Commit 67d4b0c1 authored by Alex Williamson's avatar Alex Williamson Committed by Anthony Liguori
Browse files

pc: e820 qemu_cfg tables need to be packed



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

Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent b8841706
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;