From: Marc-André Lureau <marcandre.lur...@gmail.com> Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- man/virt-install.pod | 2 +- tests/xmlparse-xml/change-videos-out.xml | 4 +++- tests/xmlparse.py | 1 + virtinst/devicevideo.py | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/man/virt-install.pod b/man/virt-install.pod index c5359de..9153cfe 100644 --- a/man/virt-install.pod +++ b/man/virt-install.pod @@ -1339,7 +1339,7 @@ Use --console=? to see a list of all available sub options. Complete details at Specify what video device model will be attached to the guest. Valid values for VIDEO are hypervisor specific, but some options for recent kvm are -cirrus, vga, qxl, or vmvga (vmware). +cirrus, vga, qxl, virtio, or vmvga (vmware). Use --video=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsVideo> diff --git a/tests/xmlparse-xml/change-videos-out.xml b/tests/xmlparse-xml/change-videos-out.xml index 15cb0b0..36780ad 100644 --- a/tests/xmlparse-xml/change-videos-out.xml +++ b/tests/xmlparse-xml/change-videos-out.xml @@ -30,7 +30,9 @@ <model type="vmvga" heads="5"/> </video> <video> - <model type="qxl" vgamem="8192" ram="100"/> + <model type="qxl" vgamem="8192" ram="100"> + <acceleration accel3d="yes"/> + </model> </video> </devices> </domain> diff --git a/tests/xmlparse.py b/tests/xmlparse.py index 2e41746..fa7eb5a 100644 --- a/tests/xmlparse.py +++ b/tests/xmlparse.py @@ -674,6 +674,7 @@ class XMLParseTest(unittest.TestCase): check("model", "cirrus", "cirrus", "qxl") check("ram", None, 100) check("vgamem", None, 8192) + check("accel3d", None, True) self._alter_compare(guest.get_xml_config(), outfile) diff --git a/virtinst/devicevideo.py b/virtinst/devicevideo.py index 308bc2e..689c1cc 100644 --- a/virtinst/devicevideo.py +++ b/virtinst/devicevideo.py @@ -27,7 +27,7 @@ class VirtualVideoDevice(VirtualDevice): # Default models list MODEL_DEFAULT = "default" - MODELS = ["cirrus", "vga", "vmvga", "xen", "qxl"] + MODELS = ["cirrus", "vga", "vmvga", "xen", "qxl", "virtio"] @staticmethod def pretty_model(model): @@ -43,6 +43,7 @@ class VirtualVideoDevice(VirtualDevice): ram = XMLProperty("./model/@ram", is_int=True) heads = XMLProperty("./model/@heads", is_int=True) vgamem = XMLProperty("./model/@vgamem", is_int=True) + accel3d = XMLProperty("./model/acceleration/@accel3d", is_yesno=True) VirtualVideoDevice.register_type() -- 2.5.0 _______________________________________________ virt-tools-list mailing list virt-tools-list@redhat.com https://www.redhat.com/mailman/listinfo/virt-tools-list