1 #ifndef __HVMLOADER_E820_H__
2 #define __HVMLOADER_E820_H__
4 /* E820 location in HVM virtual address space. */
5 #define HVM_E820_PAGE 0x00090000
6 #define HVM_E820_NR_OFFSET 0x000001E8
7 #define HVM_E820_OFFSET 0x000002D0
9 #define HVM_BELOW_4G_RAM_END 0xF0000000
10 #define HVM_BELOW_4G_MMIO_START HVM_BELOW_4G_RAM_END
11 #define HVM_BELOW_4G_MMIO_LENGTH ((1ULL << 32) - HVM_BELOW_4G_MMIO_START)
15 * PC BIOS standard E820 types and structure.
18 #define E820_RESERVED 2
26 } __attribute__((packed));
28 #define HVM_E820_NR ((unsigned char *)HVM_E820_PAGE + HVM_E820_NR_OFFSET)
29 #define HVM_E820 ((struct e820entry *)(HVM_E820_PAGE + HVM_E820_OFFSET))
31 #endif /* __HVMLOADER_E820_H__ */