Revision 2c9b15ca xen-all.c
b/xen-all.c | ||
---|---|---|
167 | 167 |
*/ |
168 | 168 |
block_len += HVM_BELOW_4G_MMIO_LENGTH; |
169 | 169 |
} |
170 |
memory_region_init_ram(&ram_memory, "xen.ram", block_len); |
|
170 |
memory_region_init_ram(&ram_memory, NULL, "xen.ram", block_len);
|
|
171 | 171 |
vmstate_register_ram_global(&ram_memory); |
172 | 172 |
|
173 | 173 |
if (ram_size >= HVM_BELOW_4G_RAM_END) { |
... | ... | |
177 | 177 |
below_4g_mem_size = ram_size; |
178 | 178 |
} |
179 | 179 |
|
180 |
memory_region_init_alias(&ram_640k, "xen.ram.640k", |
|
180 |
memory_region_init_alias(&ram_640k, NULL, "xen.ram.640k",
|
|
181 | 181 |
&ram_memory, 0, 0xa0000); |
182 | 182 |
memory_region_add_subregion(sysmem, 0, &ram_640k); |
183 | 183 |
/* Skip of the VGA IO memory space, it will be registered later by the VGA |
... | ... | |
186 | 186 |
* The area between 0xc0000 and 0x100000 will be used by SeaBIOS to load |
187 | 187 |
* the Options ROM, so it is registered here as RAM. |
188 | 188 |
*/ |
189 |
memory_region_init_alias(&ram_lo, "xen.ram.lo", |
|
189 |
memory_region_init_alias(&ram_lo, NULL, "xen.ram.lo",
|
|
190 | 190 |
&ram_memory, 0xc0000, below_4g_mem_size - 0xc0000); |
191 | 191 |
memory_region_add_subregion(sysmem, 0xc0000, &ram_lo); |
192 | 192 |
if (above_4g_mem_size > 0) { |
193 |
memory_region_init_alias(&ram_hi, "xen.ram.hi", |
|
193 |
memory_region_init_alias(&ram_hi, NULL, "xen.ram.hi",
|
|
194 | 194 |
&ram_memory, 0x100000000ULL, |
195 | 195 |
above_4g_mem_size); |
196 | 196 |
memory_region_add_subregion(sysmem, 0x100000000ULL, &ram_hi); |
Also available in: Unified diff