Subject: virtinst: add virtio device model and accel3d attribute From: Marc-André Lureau marcandre.lureau@gmail.com Fri Mar 4 12:31:52 2016 +0100 Date: Wed Mar 9 20:25:37 2016 -0500: Git: 8ba48f5299409354fb610cd8620987e635c90643 Signed-off-by: Marc-André Lureau Index: virt-manager-1.3.2/man/virt-install.pod =================================================================== --- virt-manager-1.3.2.orig/man/virt-install.pod +++ virt-manager-1.3.2/man/virt-install.pod @@ -1334,7 +1334,7 @@ Use --console=? to see a list of all ava 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 Index: virt-manager-1.3.2/tests/xmlparse-xml/change-videos-out.xml =================================================================== --- virt-manager-1.3.2.orig/tests/xmlparse-xml/change-videos-out.xml +++ virt-manager-1.3.2/tests/xmlparse-xml/change-videos-out.xml @@ -30,7 +30,9 @@ Index: virt-manager-1.3.2/tests/xmlparse.py =================================================================== --- virt-manager-1.3.2.orig/tests/xmlparse.py +++ virt-manager-1.3.2/tests/xmlparse.py @@ -673,6 +673,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) Index: virt-manager-1.3.2/virtinst/devicevideo.py =================================================================== --- virt-manager-1.3.2.orig/virtinst/devicevideo.py +++ virt-manager-1.3.2/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()