[libvirt] [PATCH v4 2/2] qemu_process: detect updated video ram size values from QEMU

Jiri Denemark jdenemar at redhat.com
Wed Jan 14 10:38:18 UTC 2015


On Wed, Jan 14, 2015 at 10:27:29 +0100, Pavel Hrdina wrote:
> 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 at redhat.com>
> ---
>  src/qemu/qemu_monitor.c      | 34 ++++++++++++++++++
>  src/qemu/qemu_monitor.h      |  4 +++
>  src/qemu/qemu_monitor_json.c | 69 ++++++++++++++++++++++++++++++++++++
>  src/qemu/qemu_monitor_json.h |  3 ++
>  src/qemu/qemu_process.c      | 83 ++++++++++++++++++++++++++++++++++++++++++++
>  5 files changed, 193 insertions(+)

ACK

Jirka




More information about the libvir-list mailing list