mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-21 15:18:19 +00:00
7594786fcf
preferred_video_model returned vga whenever no preferred model was found, also when the hypervisor did not offer vga, did not support video, or the capability query failed. Under native aarch64 KVM, vga and the other PCI framebuffer models do not display correctly. An aarch64 guest now takes the first offered model of virtio and ramfb under KVM, or of virtio, vga and ramfb under TCG. When video is unsupported or no wanted model is offered, build_xmldesc writes no <video> and no <graphics>, and the guest uses its serial console. When the capabilities are unavailable, build_xmldesc returns an error that names the query error and vm.vidmodel. vm.vidmodel still overrides the choice. Other architectures do not query the capabilities and keep their fixed model. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>