mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
ACRN:DM:VDisplay: vdpy_init connection returns the supported number of vScreen
Vdisplay module will create the gui_window (vScreen) based on the virtio-gpu parameter. When virtio-gpu device tries to establish the connection with vdisplay module, it will return the supported number of vScreen. Then the virtio-gpu device can initialize the correct info for the guest_vm. BTW: The number is fixed to 1. Tracked-On: #7988 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Peng Sun <peng.p.sun@linux.intel.com>
This commit is contained in:
@@ -1485,7 +1485,7 @@ virtio_gpu_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
|
||||
gpu->vq,
|
||||
BACKEND_VBSU);
|
||||
|
||||
gpu->vdpy_handle = vdpy_init();
|
||||
gpu->vdpy_handle = vdpy_init(NULL);
|
||||
gpu->base.mtx = &gpu->mtx;
|
||||
gpu->base.device_caps = VIRTIO_GPU_S_HOSTCAPS;
|
||||
|
||||
|
Reference in New Issue
Block a user