conf: also mark the implicit video as primary

Commit 119cd06 started setting the primary bool for the first
user-specified video even if user omitted the 'primary' attribute.

However this was done before the addition of the implicit device.
This broke startup of transient qemu domains with no <video>:
https://bugzilla.redhat.com/show_bug.cgi?id=1325757

Move this default to virDomainDefPostParseInternal,
after the addition of the implicit video device, to catch the implicit
video as well.
This commit is contained in:
Ján Tomko
2016-04-12 10:45:35 +02:00
parent 6879be484c
commit 6d8b6d2847
68 changed files with 72 additions and 70 deletions
@@ -19,7 +19,7 @@
</disk>
<controller type='scsi' index='0' model='buslogic'/>
<video>
<model type='vmvga' vram='4096'/>
<model type='vmvga' vram='4096' primary='yes'/>
</video>
</devices>
</domain>