Guo Zhi 6985d8ede9 vga: avoid crash if no default vga card
QEMU in some arch will crash when executing -vga help command, because
there is no default vga model.  Add check to this case and avoid crash.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/978

Signed-off-by: Guo Zhi <qtxuning1999@sjtu.edu.cn>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220503091724.970009-1-qtxuning1999@sjtu.edu.cn>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2022-06-28 10:43:05 +02:00
..
2022-06-06 09:26:53 +02:00
2022-04-21 16:56:55 +04:00
2022-04-06 10:50:37 +02:00
2022-04-06 10:50:37 +02:00
2020-09-09 17:15:18 +01:00
2022-06-28 10:43:05 +02:00