]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Build command line for virtio-mem
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 19 Jan 2021 09:16:55 +0000 (10:16 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 1 Oct 2021 09:04:05 +0000 (11:04 +0200)
commit363866a1e28f01c30b6fec81928bbad1a6b414fa
treef76b03547eb7cb95bf77abbba7a4dcd8f48faf39
parentf931cb7f216be3f1ff5ed58e944d31097a683ce4
qemu: Build command line for virtio-mem

Nothing special is happening here. All important changes were
done when for 'virtio-pmem' (adjusting the code to put virtio
memory on PCI bus, generating alias using
qemuDomainDeviceAliasIndex(). The only bit that might look
suspicious is no prealloc for virtio-mem. But if you think about
it, the whole purpose of this device is to change amount of
memory exposed to guest on the fly. There is no point in locking
the whole backend in memory.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_alias.c
src/qemu/qemu_command.c
tests/qemuxml2argvdata/memory-hotplug-virtio-mem.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvtest.c