dm: vdisplay: terminate acrn-dm process when SDL init failed

Virtual display is component which based on native window system.
This feature depended phisical monitor connected and graphic driver in
SOS running correctly. If these dependencies fail, it is a fatal error
for virtual display. We have to terminate the device model to let user
fix runtime environment issue for graphics.

Tracked-On: #7672
Signed-off-by: Sun Peng <peng.p.sun@linux.intel.com>
This commit is contained in:
Sun Peng
2022-06-02 11:38:48 +08:00
committed by acrnsi-robot
parent c621983a74
commit 7ee0421d33
3 changed files with 10 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ struct cursor {
};
int vdpy_parse_cmd_option(const char *opts);
void gfx_ui_init();
int gfx_ui_init();
int vdpy_init();
void vdpy_get_display_info(int handle, struct display_info *info);
void vdpy_surface_set(int handle, struct surface *surf);