]> git.ipfire.org Git - thirdparty/qemu.git/commit
Revert "xen-hvm: increase maxmem before calling xc_domain_populate_physmap"
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 22 Jun 2015 13:00:42 +0000 (13:00 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 23 Jun 2015 16:18:38 +0000 (16:18 +0000)
commitffffbb369f3ed9bca5ff2867143f76d0c6e069c0
treeb4e7e36e2608b89ddc49a3247afc7c8404cea4e5
parent74526eb01886ca45774c1e9c736f61536fa2bda1
Revert "xen-hvm: increase maxmem before calling xc_domain_populate_physmap"

This reverts commit c1d322e6048796296555dd36fdd102d7fa2f50bf.

The original commit fixes a bug when assigning a large number of
devices which require option roms to a guest.  (One known
configuration that needs extra memory is having more than 4 emulated
NICs assigned.  Three or fewer NICs seems to work without this
functionality.)

However, by unilaterally increasing maxmem, it introduces two
problems.

First, now libxl's calculation of the required maxmem during migration
is broken -- any guest which exercised this functionality will fail on
migration.  (Guests which have the default number of devices are not
affected.)

Secondly, it makes it impossible for a higher-level toolstack or
administer to predict how much memory a VM will actually use, making
it much more difficult to effectively use all of the memory on a
machine.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-hvm.c