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)))
goto cleanup;
video->type = VIR_DOMAIN_VIDEO_TYPE_GOP;
if (!(graphics = virDomainGraphicsDefNew(xmlopt)))
goto cleanup;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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