]> git.proxmox.com Git - mirror_qemu.git/commit - xen-hvm.c
xen: Fix the memory registration to reflect of what is done by Xen.
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 20 Jul 2011 08:17:43 +0000 (08:17 +0000)
committerAlexander Graf <agraf@suse.de>
Tue, 26 Jul 2011 04:57:55 +0000 (06:57 +0200)
commit8a369e20e701c9d220834e0daa027e65acd35214
treeb9e1f2887288ec0a1b11b9736a4ac9f23dc60ad2
parentf15fbc4bd1a24bd1477a846e63e62c6d435912f8
xen: Fix the memory registration to reflect of what is done by Xen.

A Xen guest memory is allocated by libxc. But this memory is not
allocated continuously, instead, it leaves the VGA IO memory space not
allocated, same for the MMIO space (at HVM_BELOW_4G_MMIO_START of size
HVM_BELOW_4G_MMIO_LENGTH).

So to reflect that, we do not register the physical memory for this two
holes. But we still keep only one RAMBlock for the all RAM as it is more
easier than have two separate blocks (1 above 4G). Also this prevent QEMU
from use the MMIO space for a ROM.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
xen-all.c