From 86eff3c6a1da98b5c6e87f909188e80e9d095afa Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Tue, 16 Aug 2022 11:36:03 +0800 Subject: [PATCH] ACRN:DM:VDisplay: Report the number of connected vscreen for virtio-gpu devices When multi-display window is initialied/configured, it should report the correct number to virtio-gpu devides so that it can notify that the Guest_VM can use multi-display. Otherwise the Guest VM still gets only one display. Tracked-On: #7988 Signed-off-by: Zhao Yakui Reviewed-by: Sun Peng Reviewed-by: Wang Yu --- devicemodel/hw/vdisplay_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/hw/vdisplay_sdl.c b/devicemodel/hw/vdisplay_sdl.c index a8d5af56b..22dd81b7f 100644 --- a/devicemodel/hw/vdisplay_sdl.c +++ b/devicemodel/hw/vdisplay_sdl.c @@ -1254,7 +1254,7 @@ vdpy_init(int *num_vscreens) vdpy.s.n_connect++; if (num_vscreens) - *num_vscreens = 1; + *num_vscreens = vdpy.vscrs_num; return vdpy.s.n_connect; }