ACRN:VGPU: Add the missing initialization of vdisplay info

Now some fileds are not initialized, which causes that ACRN-DM doesn't
handle the request of VIRTIO_GPU_CMD_GET_DISPLAY_INFO and
VIRTIO_GPU_CMD_GET_EDID.

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:
Zhao Yakui 2022-04-27 14:53:44 +08:00 committed by acrnsi-robot
parent 402565f222
commit e3b7f736d7

View File

@ -1217,5 +1217,9 @@ int vdpy_parse_cmd_option(const char *opts)
pr_info("virtual display: windowed.\n");
}
vdpy.info.xoff = 0;
vdpy.info.yoff = 0;
vdpy.info.width = vdpy.width;
vdpy.info.height = vdpy.height;
return error;
}