mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-16 08:26:41 +00:00
ACRN:VGPU: Virtio_gpu_init calls the vdpy_init before vdpy_get_display_info
Now vdpy_get_display_info/get_edid is called before vdpy_init. This is incorrect. They should be called after setting up the connection with vdisplay. Tracked-On: #7376 Acked-by: Wang Yu <yu1.wang@intel.com> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
This commit is contained in:
parent
e3b7f736d7
commit
373dac68ef
@ -1485,6 +1485,7 @@ virtio_gpu_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
|
||||
gpu->vq,
|
||||
BACKEND_VBSU);
|
||||
|
||||
gpu->vdpy_handle = vdpy_init();
|
||||
gpu->base.mtx = &gpu->mtx;
|
||||
gpu->base.device_caps = VIRTIO_GPU_S_HOSTCAPS;
|
||||
|
||||
@ -1623,7 +1624,6 @@ virtio_gpu_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)
|
||||
pr_err("%s, set modern io bar(BAR5) failed.\n", __func__);
|
||||
return rc;
|
||||
}
|
||||
gpu->vdpy_handle = vdpy_init();
|
||||
|
||||
pthread_mutex_init(&gpu->vga_thread_mtx, NULL);
|
||||
/* VGA Compablility */
|
||||
|
Loading…
Reference in New Issue
Block a user