bhyve: parse: Set video device model when parsing bhyve commandline

Add the proper video device type when parsing bhyve's commandline into a
XML.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
This commit is contained in:
Peter Krempa 2020-10-07 13:46:38 +02:00
parent 296598ea40
commit 77064438d4
8 changed files with 9 additions and 7 deletions

View File

@ -573,6 +573,8 @@ bhyveParsePCIFbuf(virDomainDefPtr def,
if (!(video = virDomainVideoDefNew(xmlopt))) if (!(video = virDomainVideoDefNew(xmlopt)))
goto cleanup; goto cleanup;
video->type = VIR_DOMAIN_VIDEO_TYPE_GOP;
if (!(graphics = virDomainGraphicsDefNew(xmlopt))) if (!(graphics = virDomainGraphicsDefNew(xmlopt)))
goto cleanup; goto cleanup;

View File

@ -16,7 +16,7 @@
<listen type='address' address='1.2.3.4'/> <listen type='address' address='1.2.3.4'/>
</graphics> </graphics>
<video> <video>
<model type='default' heads='1'/> <model type='gop' heads='1'/>
</video> </video>
</devices> </devices>
</domain> </domain>

View File

@ -16,7 +16,7 @@
<listen type='address' address='127.0.0.1'/> <listen type='address' address='127.0.0.1'/>
</graphics> </graphics>
<video> <video>
<model type='default' heads='1'/> <model type='gop' heads='1'/>
</video> </video>
</devices> </devices>
</domain> </domain>

View File

@ -16,7 +16,7 @@
<listen type='address' address='127.0.0.1'/> <listen type='address' address='127.0.0.1'/>
</graphics> </graphics>
<video> <video>
<model type='default' heads='1'> <model type='gop' heads='1'>
<resolution x='1920' y='1080'/> <resolution x='1920' y='1080'/>
</model> </model>
</video> </video>

View File

@ -16,7 +16,7 @@
<listen type='address' address='127.0.0.1'/> <listen type='address' address='127.0.0.1'/>
</graphics> </graphics>
<video> <video>
<model type='default' heads='1'/> <model type='gop' heads='1'/>
</video> </video>
</devices> </devices>
</domain> </domain>

View File

@ -17,7 +17,7 @@
</graphics> </graphics>
<video> <video>
<driver vgaconf='off'/> <driver vgaconf='off'/>
<model type='default' heads='1'/> <model type='gop' heads='1'/>
</video> </video>
</devices> </devices>
</domain> </domain>

View File

@ -17,7 +17,7 @@
</graphics> </graphics>
<video> <video>
<driver vgaconf='on'/> <driver vgaconf='on'/>
<model type='default' heads='1'/> <model type='gop' heads='1'/>
</video> </video>
</devices> </devices>
</domain> </domain>

View File

@ -16,7 +16,7 @@
<listen type='address' address='127.0.0.1'/> <listen type='address' address='127.0.0.1'/>
</graphics> </graphics>
<video> <video>
<model type='default' heads='1'/> <model type='gop' heads='1'/>
</video> </video>
</devices> </devices>
</domain> </domain>