mbox series

[0/1] Brief description of the patch series

Message ID 20240726055029.946-1-Lei.Huang@amd.com
Headers show
Series Brief description of the patch series | expand

Message

Lei Huang July 26, 2024, 5:50 a.m. UTC
The purpose of this patch is customize refresh rate and resolution 
for the guest VM instead of being limited by the actual resolution 
of the host.

Although it is possible to configure the VM kernel cmdline to set the 
EDID, such as with drm.edid_firmware=edid/1920x1080.bin, this approach
is very inconvenient for three reasons:

1.Some systems, like Android, cannot dynamically set the kernel cmdline 
and require recompiling the Android image.

2.If the guest VM's DRM driver is built-in, the EDID file also needs to 
be built-in. If it is placed in the filesystem, the DRM driver will fail 
to load the firmware because the filesystem is not yet mounted when the 
driver starts.

3.Some tools for generating EDID files
like:https://github.com/akatrevorjay/edid-generator.git have a limitation 
where the maximum main clock can only be 655 MHz, making it impossible to 
generate an EDID file for resolutions like 3840x2160@120Hz.

The following patches are included in this series:

1. [PATCH 1/1] virtio-gpu: customize EDID for vms

Thank you for reviewing these patches.

Best regards,
Lei Huang
Lei.Huang@amd.com

Lei Huang (1):
  virtio-gpu: customize EDID for vms

 hw/display/virtio-gpu-base.c   | 41 ++++++++++++++++++++++++++++------
 hw/display/virtio-gpu.c        |  1 +
 include/hw/virtio/virtio-gpu.h | 26 +++++++++++++++++++++
 3 files changed, 61 insertions(+), 7 deletions(-)