]> xenbits.xensource.com Git - libvirt.git/commit
qemu_process: detect updated video ram size values from QEMU
authorPavel Hrdina <phrdina@redhat.com>
Wed, 10 Dec 2014 14:31:23 +0000 (15:31 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 14 Jan 2015 10:55:51 +0000 (11:55 +0100)
commitce745914b33e3f9a136d91655600b931e7a4178f
tree061214690ff5c34771f6b8a125bd41da801a3106
parentcc41c64878590d7016e0dfa488d345e8634c3bf2
qemu_process: detect updated video ram size values from QEMU

QEMU internally updates the size of video memory if the domain XML had
provided too low memory size or there are some dependencies for a QXL
devices 'vgamem' and 'ram' size. We need to know about the changes and
store them into the status XML to not break migration or managedsave
through different libvirt versions.

The values would be loaded only if the "vgamem_mb" property exists for
the device.  The presence of the "vgamem_mb" also tells that the
"ram_size" and "vram_size" exists for QXL devices.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
src/qemu/qemu_process.c