]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Move initialization of disk cachemode for <shareable> disks
authorPeter Krempa <pkrempa@redhat.com>
Tue, 27 Mar 2018 09:11:26 +0000 (11:11 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Apr 2018 13:48:38 +0000 (15:48 +0200)
commita801f0e79b94645de82524a4ba0e8f927da0ecc1
treed15c72b12ed1e997f9a21084a3479bed4604b553
parentf0a528ce06c54ade0df62b8c16ec0fec7bacf732
qemu: domain: Move initialization of disk cachemode for <shareable> disks

The qemu command line generator code set disk caching of shareable disks
to 'none' when formatting the command line silently. Move this code to a
common place when preparing the domain definition for startup so that it
does not have to be duplicated.

The new test case shows that the actual cache mode will now be recorded
in the live XML definition.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
tests/qemuxml2startupxmloutdata/disk-drive-shared.xml