7ae2f1099b
virt-manager 8ba48f52-add-virtio-device-model-and-accel3d-attribute.patch - bsc#964407 - Virt-Manager: Installer wrongly detects SLE-12-GA media as SLE-12-SP1 virtinst-fix-sle12sp1-detection.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=309
69 lines
2.8 KiB
Diff
69 lines
2.8 KiB
Diff
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 <marcandre.lureau@redhat.com>
|
|
|
|
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<http://libvirt.org/formatdomain.html#elementsVideo>
|
|
|
|
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 @@
|
|
<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>
|
|
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()
|