From fb8f3b1c22c8f272bb9a47e8f8915acc3cfb47f1 Mon Sep 17 00:00:00 2001
From: Pavel Hrdina
Date: Mon, 10 Oct 2016 20:19:06 +0200
Subject: [PATCH] qemu_command: add support to use virtio as secondary video
device
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1369633
Signed-off-by: Pavel Hrdina
---
docs/formatdomain.html.in | 3 +-
src/qemu/qemu_domain.c | 3 +-
...muxml2argv-video-virtio-gpu-secondary.args | 22 ++++++++++++
...emuxml2argv-video-virtio-gpu-secondary.xml | 27 ++++++++++++++
tests/qemuxml2argvtest.c | 3 ++
...uxml2xmlout-video-virtio-gpu-secondary.xml | 35 +++++++++++++++++++
tests/qemuxml2xmltest.c | 1 +
7 files changed, 92 insertions(+), 2 deletions(-)
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-video-virtio-gpu-secondary.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-video-virtio-gpu-secondary.xml
create mode 100644 tests/qemuxml2xmloutdata/qemuxml2xmlout-video-virtio-gpu-secondary.xml
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index b989c8f9a4..905117881e 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -5641,7 +5641,8 @@ qemu-kvm -net nic,model=? /dev/null
video device in domain xml is the primary one, but the optional
attribute primary (since 1.0.2)
with value 'yes' can be used to mark the primary in cases of multiple
- video device. The non-primary must be type of "qxl".
+ video device. The non-primary must be type of "qxl" or
+ (since 2.4.0) "virtio".