]> git.proxmox.com Git - mirror_qemu.git/commit
machine: alias -mem-path and -mem-prealloc into memory-foo backend
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Feb 2020 16:08:37 +0000 (11:08 -0500)
committerPatchew Importer <importer@patchew.org>
Wed, 19 Feb 2020 16:49:53 +0000 (16:49 +0000)
commit900c0ba373aada4c13d47d95330aa72ec4067ba5
tree33a2a784e058d805440f8e2c8f7dac7ba6f4a1a5
parentaa8b183974b27d4dc025905eb869a1941e85e17d
machine: alias -mem-path and -mem-prealloc into memory-foo backend

Allow machine to opt in for hostmem backend based initial RAM
even if user uses old -mem-path/prealloc options by providing
  MachineClass::default_ram_id
Follow up patches will incrementally convert machines to new API,
by dropping memory_region_allocate_system_memory() and setting
default_ram_id that board used to use before conversion to keep
migration stream the same.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20200219160953.13771-4-imammedo@redhat.com>
backends/hostmem-file.c
backends/hostmem-ram.c
include/hw/boards.h
include/sysemu/hostmem.h
vl.c