Page MenuHomeFreeBSD

Hyper-V framebuffer driver
Needs ReviewPublic

Authored by yuripv on Apr 3 2023, 8:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 19, 12:10 PM
Unknown Object (File)
Sat, Jul 6, 8:32 PM
Unknown Object (File)
Mon, Jul 1, 4:00 PM
Unknown Object (File)
Mon, Jul 1, 3:25 PM
Unknown Object (File)
Thu, Jun 27, 8:46 PM
Unknown Object (File)
Jun 25 2024, 4:53 PM
Unknown Object (File)
Jun 23 2024, 10:16 PM
Unknown Object (File)
Jun 21 2024, 5:21 AM

Details

Summary

WIP for Hyper-V framebuffer driver.

This allows to use more comfortable resolution than the one that comes by default in Gen2 UEFI VMs (1024x768).

Currently the resolution used is the one that is explicitly specified on the host (note the -single, otherwise the one reported to VM is not it):
Set-VMVideo -vmname <name> -ResolutionType single -HorizontalResolution 1920 -VerticalResolution 1080

What is missing is the sane way to send updates to the host, vt drivers do not seem to have any kind of "dirt" callback.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

yuripv requested review of this revision.Apr 3 2023, 8:09 AM

Add naive implementation of scheduled updates.

  • add sysctl to control the "fps"
  • add pnp entries
  • add to build
lwhsu added inline comments.
sys/dev/hyperv/hvfb/hv_fb.c
2

Just being curious, is this code copied and modified from the existing one? If you modified enough, maybe you also want to add your copyright along with this?

Has this change been tested?

Of course, I used it as I was working on it :)

I didn't add anyone to reviewers though just yet as I am still thinking about the options here:

  1. have this in base for a (bit better) resolution with console and scfb
  2. have this entirely in drm-kmod (that will be completely separate change) for things like wayland compositors to work
  3. have this in base and provide interfaces for drm module to re-use

It'd be great to get this in.

Has this change been tested?

Of course, I used it as I was working on it :)

I didn't add anyone to reviewers though just yet as I am still thinking about the options here:

  1. have this in base for a (bit better) resolution with console and scfb
  2. have this entirely in drm-kmod (that will be completely separate change) for things like wayland compositors to work
  3. have this in base and provide interfaces for drm module to re-use

Please add me and Wei Hu as reviewer .