virt-install: Support --video vram64= (bz 1377080)

This commit is contained in:
Cole Robinson 2017-03-05 14:51:25 -05:00
parent d31e933f24
commit 1757e394bb
4 changed files with 4 additions and 2 deletions

View File

@ -281,7 +281,7 @@
<model type="cirrus"/>
</video>
<video>
<model type="qxl" vram="3" heads="4" vgamem="1" ram="2">
<model type="qxl" vram="3" heads="4" vgamem="1" ram="2" vram64="65">
<acceleration accel3d="yes"/>
</model>
</video>

View File

@ -525,7 +525,7 @@ c.add_compare(""" \
--sound ac97 \
\
--video cirrus \
--video model=qxl,vgamem=1,ram=2,vram=3,heads=4,accel3d=yes \
--video model=qxl,vgamem=1,ram=2,vram=3,heads=4,accel3d=yes,vram64=65 \
\
--smartcard passthrough,type=spicevmc \
--smartcard type=host \

View File

@ -2571,6 +2571,7 @@ ParserVideo.add_arg("accel3d", "accel3d", is_onoff=True)
ParserVideo.add_arg("heads", "heads")
ParserVideo.add_arg("ram", "ram")
ParserVideo.add_arg("vram", "vram")
ParserVideo.add_arg("vram64", "vram64")
ParserVideo.add_arg("vgamem", "vgamem")

View File

@ -40,6 +40,7 @@ class VirtualVideoDevice(VirtualDevice):
default_cb=lambda s: "cirrus",
default_name=MODEL_DEFAULT)
vram = XMLProperty("./model/@vram", is_int=True)
vram64 = XMLProperty("./model/@vram64", is_int=True)
ram = XMLProperty("./model/@ram", is_int=True)
heads = XMLProperty("./model/@heads", is_int=True)
vgamem = XMLProperty("./model/@vgamem", is_int=True)