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.
Acked-by: Wang Yu
@@ -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;
}
