]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
vl.c: fix regression when reading memory size from config file
authorMarcel Apfelbaum <marcel@redhat.com>
Sun, 11 Jan 2015 10:38:43 +0000 (12:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Jan 2015 09:38:53 +0000 (10:38 +0100)
commit3b9985e9a104dd90427570dd4e06e4d1f152c48b
tree052fd64df3b6a2dc848e2de11d8f7f4bfe16f56a
parentec2cbbdd80463efd4bc81a9d1362a2acb3097a21
vl.c: fix regression when reading memory size from config file

This is happening because an actual logic is performed on the memory
arguments inside the main's switch, disregarding the config file content.

Solved by extracting the logic on a separate function and calling it
after the switch.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vl.c