Revision 9f24a803 xen-all.c

b/xen-all.c
161 161
    ram_addr_t block_len;
162 162

  
163 163
    block_len = ram_size;
164
    if (ram_size >= HVM_BELOW_4G_RAM_END) {
164
    if (ram_size >= QEMU_BELOW_4G_RAM_END) {
165 165
        /* Xen does not allocate the memory continuously, and keep a hole at
166
         * HVM_BELOW_4G_MMIO_START of HVM_BELOW_4G_MMIO_LENGTH
166
         * QEMU_BELOW_4G_RAM_END of QEMU_BELOW_4G_MMIO_LENGTH
167 167
         */
168
        block_len += HVM_BELOW_4G_MMIO_LENGTH;
168
        block_len += QEMU_BELOW_4G_MMIO_LENGTH;
169 169
    }
170 170
    memory_region_init_ram(&ram_memory, "xen.ram", block_len);
171 171
    vmstate_register_ram_global(&ram_memory);
172 172

  
173
    if (ram_size >= HVM_BELOW_4G_RAM_END) {
174
        above_4g_mem_size = ram_size - HVM_BELOW_4G_RAM_END;
175
        below_4g_mem_size = HVM_BELOW_4G_RAM_END;
173
    if (ram_size >= QEMU_BELOW_4G_RAM_END) {
174
        above_4g_mem_size = ram_size - QEMU_BELOW_4G_RAM_END;
175
        below_4g_mem_size = QEMU_BELOW_4G_RAM_END;
176 176
    } else {
177 177
        below_4g_mem_size = ram_size;
178 178
    }

Also available in: Unified diff