summaryrefslogtreecommitdiffstats
path: root/linux-headers/linux/vhost.h
diff options
context:
space:
mode:
authorWei Yang2019-04-05 08:41:19 +0200
committerEduardo Habkost2019-04-25 19:16:42 +0200
commitc516cd1b34f119370d9816ad87514698dc2bdbc8 (patch)
tree841fec47a63886e0b4e1ac729a322d60a4c3031d /linux-headers/linux/vhost.h
parentvl.c: make find_default_machine() local (diff)
downloadqemu-c516cd1b34f119370d9816ad87514698dc2bdbc8.tar.gz
qemu-c516cd1b34f119370d9816ad87514698dc2bdbc8.tar.xz
qemu-c516cd1b34f119370d9816ad87514698dc2bdbc8.zip
vl.c: allocate TYPE_MACHINE list once during bootup
Now all the functions used to select machine is local and the call flow looks like below: select_machine() find_default_machine() machine_parse() find_machine() All these related function will need a GSList for TYPE_MACHINE. Currently we allocate this list each time we use it, while this is not necessary to do so because we don't need to modify this. This patch make the TYPE_MACHINE list allocation in select_machine and pass this to its child for use. Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190405064121.23662-3-richardw.yang@linux.intel.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'linux-headers/linux/vhost.h')
0 files changed, 0 insertions, 0 deletions