]> git.ipfire.org Git - thirdparty/qemu.git/commit
vl: Delay initialization of memory backends
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 2 Sep 2016 18:59:44 +0000 (15:59 -0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 13 Dec 2016 00:13:21 +0000 (18:13 -0600)
commitcc1fd252953405342491d93f3dc4406c8a6296fb
tree8c609e5381786fb5399ffb8a7da98116028f3c61
parentee99e42be451516580bc54af8328d73e0904efbd
vl: Delay initialization of memory backends

Initialization of memory backends may take a while when
prealloc=yes is used, depending on their size. Initializing
memory backends before chardevs may delay the creation of monitor
sockets, and trigger timeouts on management software that waits
until the monitor socket is created by QEMU. See, for example,
the bug report at:
https://bugzilla.redhat.com/show_bug.cgi?id=1371211

In addition to that, allocating memory before calling
configure_accelerator() breaks the tcg_enabled() checks at
memory_region_init_*().

This patch fixes those problems by adding "memory-backend-*"
classes to the delayed-initialization list.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
(cherry picked from commit 6546d0dba6c211c1a3eac1252a4f50a0c151a08a)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
vl.c