mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 18:15:25 +00:00
conf: domain: add VIDEO_TYPE_DEFAULT
Will be needed for future patches to pull the default video type setting out of XML parsing routines. Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
4c248e938a
commit
a2ca7ca52e
@ -551,6 +551,7 @@ VIR_ENUM_IMPL(virDomainPanicModel, VIR_DOMAIN_PANIC_MODEL_LAST,
|
||||
"s390")
|
||||
|
||||
VIR_ENUM_IMPL(virDomainVideo, VIR_DOMAIN_VIDEO_TYPE_LAST,
|
||||
"default",
|
||||
"vga",
|
||||
"cirrus",
|
||||
"vmvga",
|
||||
|
@ -1359,6 +1359,7 @@ struct _virDomainWatchdogDef {
|
||||
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_VIDEO_TYPE_DEFAULT,
|
||||
VIR_DOMAIN_VIDEO_TYPE_VGA,
|
||||
VIR_DOMAIN_VIDEO_TYPE_CIRRUS,
|
||||
VIR_DOMAIN_VIDEO_TYPE_VMVGA,
|
||||
|
@ -97,6 +97,7 @@ VIR_ENUM_IMPL(qemuDiskCacheV2, VIR_DOMAIN_DISK_CACHE_LAST,
|
||||
"unsafe");
|
||||
|
||||
VIR_ENUM_IMPL(qemuVideo, VIR_DOMAIN_VIDEO_TYPE_LAST,
|
||||
"", /* default value, we shouldn't see this */
|
||||
"std",
|
||||
"cirrus",
|
||||
"vmware",
|
||||
@ -110,6 +111,7 @@ VIR_ENUM_IMPL(qemuVideo, VIR_DOMAIN_VIDEO_TYPE_LAST,
|
||||
VIR_ENUM_DECL(qemuDeviceVideo)
|
||||
|
||||
VIR_ENUM_IMPL(qemuDeviceVideo, VIR_DOMAIN_VIDEO_TYPE_LAST,
|
||||
"", /* default value, we shouldn't see this */
|
||||
"VGA",
|
||||
"cirrus-vga",
|
||||
"vmware-svga",
|
||||
@ -123,6 +125,7 @@ VIR_ENUM_IMPL(qemuDeviceVideo, VIR_DOMAIN_VIDEO_TYPE_LAST,
|
||||
VIR_ENUM_DECL(qemuDeviceVideoSecondary)
|
||||
|
||||
VIR_ENUM_IMPL(qemuDeviceVideoSecondary, VIR_DOMAIN_VIDEO_TYPE_LAST,
|
||||
"", /* default value, we shouldn't see this */
|
||||
"", /* no secondary device for VGA */
|
||||
"", /* no secondary device for cirrus-vga */
|
||||
"", /* no secondary device for vmware-svga */
|
||||
|
@ -3017,6 +3017,7 @@ qemuDomainDefValidateVideo(const virDomainDef *def)
|
||||
case VIR_DOMAIN_VIDEO_TYPE_XEN:
|
||||
case VIR_DOMAIN_VIDEO_TYPE_VBOX:
|
||||
case VIR_DOMAIN_VIDEO_TYPE_PARALLELS:
|
||||
case VIR_DOMAIN_VIDEO_TYPE_DEFAULT:
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("video type '%s' is not supported with QEMU"),
|
||||
virDomainVideoTypeToString(video->type));
|
||||
|
@ -753,6 +753,7 @@ qemuDomainDeviceCalculatePCIConnectFlags(virDomainDeviceDefPtr dev,
|
||||
case VIR_DOMAIN_VIDEO_TYPE_PARALLELS:
|
||||
return pciFlags;
|
||||
|
||||
case VIR_DOMAIN_VIDEO_TYPE_DEFAULT:
|
||||
case VIR_DOMAIN_VIDEO_TYPE_GOP:
|
||||
case VIR_DOMAIN_VIDEO_TYPE_LAST:
|
||||
return 0;
|
||||
|
@ -62,6 +62,7 @@
|
||||
</graphics>
|
||||
<video supported='yes'>
|
||||
<enum name='modelType'>
|
||||
<value>default</value>
|
||||
<value>vga</value>
|
||||
<value>cirrus</value>
|
||||
<value>vmvga</value>
|
||||
|
Loading…
Reference in New Issue
Block a user