mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
qemu: Set default video type in qemu PostParse
And not generic domain_conf code. We will need qemu private functions in a bit. Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
29a90f071d
commit
ef08a54538
@ -13939,9 +13939,6 @@ virDomainVideoDefaultType(const virDomainDef *def)
|
|||||||
{
|
{
|
||||||
switch (def->virtType) {
|
switch (def->virtType) {
|
||||||
case VIR_DOMAIN_VIRT_TEST:
|
case VIR_DOMAIN_VIRT_TEST:
|
||||||
case VIR_DOMAIN_VIRT_QEMU:
|
|
||||||
case VIR_DOMAIN_VIRT_KQEMU:
|
|
||||||
case VIR_DOMAIN_VIRT_KVM:
|
|
||||||
case VIR_DOMAIN_VIRT_XEN:
|
case VIR_DOMAIN_VIRT_XEN:
|
||||||
if (def->os.type == VIR_DOMAIN_OSTYPE_XEN ||
|
if (def->os.type == VIR_DOMAIN_OSTYPE_XEN ||
|
||||||
def->os.type == VIR_DOMAIN_OSTYPE_LINUX)
|
def->os.type == VIR_DOMAIN_OSTYPE_LINUX)
|
||||||
|
@ -3781,6 +3781,13 @@ qemuDomainDeviceDefPostParse(virDomainDeviceDefPtr dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dev->type == VIR_DOMAIN_DEVICE_VIDEO) {
|
if (dev->type == VIR_DOMAIN_DEVICE_VIDEO) {
|
||||||
|
if (dev->data.video->type == VIR_DOMAIN_VIDEO_TYPE_DEFAULT) {
|
||||||
|
if ARCH_IS_PPC64(def->os.arch)
|
||||||
|
dev->data.video->type = VIR_DOMAIN_VIDEO_TYPE_VGA;
|
||||||
|
else
|
||||||
|
dev->data.video->type = VIR_DOMAIN_VIDEO_TYPE_CIRRUS;
|
||||||
|
}
|
||||||
|
|
||||||
if (dev->data.video->type == VIR_DOMAIN_VIDEO_TYPE_QXL &&
|
if (dev->data.video->type == VIR_DOMAIN_VIDEO_TYPE_QXL &&
|
||||||
!dev->data.video->vgamem) {
|
!dev->data.video->vgamem) {
|
||||||
dev->data.video->vgamem = QEMU_QXL_VGAMEM_DEFAULT;
|
dev->data.video->vgamem = QEMU_QXL_VGAMEM_DEFAULT;
|
||||||
|
Loading…
Reference in New Issue
Block a user