提交 a11a0e6e 编写于 作者: R Rafael Fonseca 提交者: Michal Privoznik

bhyve: move video default logic to driver

The logic setting a device default should be in the post parse function
of individual driver code.
Signed-off-by: NRafael Fonseca <r4f4rfs@gmail.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 be00118d
......@@ -161,6 +161,11 @@ bhyveDomainDeviceDefPostParse(virDomainDeviceDefPtr dev,
}
}
if (dev->type == VIR_DOMAIN_DEVICE_VIDEO &&
dev->data.video.type == VIR_DOMAIN_VIDEO_TYPE_DEFAULT) {
dev->data.video.type = VIR_DOMAIN_VIDEO_TYPE_GOP;
}
return 0;
}
......
......@@ -15738,7 +15738,6 @@ virDomainVideoDefaultType(const virDomainDef *def)
else
return VIR_DOMAIN_VIDEO_TYPE_PARALLELS;
case VIR_DOMAIN_VIRT_BHYVE:
return VIR_DOMAIN_VIDEO_TYPE_GOP;
case VIR_DOMAIN_VIRT_QEMU:
case VIR_DOMAIN_VIRT_KQEMU:
case VIR_DOMAIN_VIRT_KVM:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册