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 <yakui.zhao@intel.com>
Reviewed-by: Sun Peng <peng.p.sun@linux.intel.com>
Reviewed-by: Wang Yu <yu1.wang@intel.com>
This commit is contained in:
Zhao Yakui 2022-08-16 11:36:03 +08:00 committed by acrnsi-robot
parent 5676cceda0
commit 86eff3c6a1
1 changed files with 1 additions and 1 deletions

View File

@ -1254,7 +1254,7 @@ vdpy_init(int *num_vscreens)
vdpy.s.n_connect++; vdpy.s.n_connect++;
if (num_vscreens) if (num_vscreens)
*num_vscreens = 1; *num_vscreens = vdpy.vscrs_num;
return vdpy.s.n_connect; return vdpy.s.n_connect;
} }