]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
vl.c: daemonize before guest memory allocation
authorIgor Mammedov <imammedo@redhat.com>
Mon, 2 Jun 2014 13:25:00 +0000 (15:25 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Jun 2014 18:10:27 +0000 (21:10 +0300)
commit2d9c2725f7bd08ffaf824b8c823f1423258ec78d
treef3a12064129e05d108ded48dceeb110307c3b802
parenta790f4ecc9ac54769f483efc00d8e91f31bca14d
vl.c: daemonize before guest memory allocation

memory allocated for guest before QEMU is daemonized and then mapped
later in guest's address space after it is daemonized, leads to EPT
violation and QEMU aborts.

To avoid this and similar issues switch to daemonized mode early
before applying/processing other options.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
vl.c