]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
xen-hvm: increase maxmem before calling xc_domain_populate_physmap
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 3 Dec 2014 13:15:19 +0000 (08:15 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 9 Mar 2015 03:58:13 +0000 (22:58 -0500)
commit6c699aa9f98646bc5c58d042960ac7a7edf2d0e9
treeb8029e6ad668ba1212d538f7d52f1868c8ea5756
parenta958b9be8697dd2316669a83e85c68ccd85bfc49
xen-hvm: increase maxmem before calling xc_domain_populate_physmap

Increase maxmem before calling xc_domain_populate_physmap_exact to
avoid the risk of running out of guest memory. This way we can also
avoid complex memory calculations in libxl at domain construction
time.

This patch fixes an abort() when assigning more than 4 NICs to a VM.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Don Slutz <dslutz@verizon.com>
(cherry picked from commit c1d322e6048796296555dd36fdd102d7fa2f50bf)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
xen-hvm.c