Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 2023 10:20:38 +0200
From:      Yuri <yuri@aetern.org>
To:        hackers@freebsd.org
Subject:   "dirty" callback in vt drivers
Message-ID:  <a00d09f4-f1cf-c91f-ce1d-2a689a518593@aetern.org>

next in thread | raw e-mail | index | archive | help
Hi,

I have implemented a simple hyper-v framebuffer driver (based on linux
hyperv_fb one) acting as a glue between hypervisor and vt_fb:

https://reviews.freebsd.org/D39395

All seems to be good, except that I am missing any sane way to know of
the "dirty" updates that should be sent to hypervisor, there do not seem
to be any callbacks in vt_fb.

At the moment, as a PoC, there's a loop at the end of the attach
callback that sends the "dirty the entire buffer" message to hypervisor
once per 1/20 second, and that works and does not seem to put any real
load on the host/guest, but still feels wrong.

Is there a better way for this glue driver to be notified of the updates?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a00d09f4-f1cf-c91f-ce1d-2a689a518593>