A guest's single commit costs 5.4 us against 2.9-3.1 on a native Mac, and about 1.5 us of it is the bundle's call into the kext to write DOORBELL. The device now has a BAR 4 of 256 doorbell pages of 16 KiB, which a guest binds to its contexts through DOORBELL_PAGE_BIND (0x040, `page | context << 8`) where it took DOORBELL_PAGES (feature bit 46). A page is its context's own DOORBELL: a write of a ring's id at its first byte wakes that ring where it is one of the context's queues', and is answered at the doorbell as there when it asks. Every other write is dropped and counted, logged once per kind: at an unbound page or another offset (`unbound`), or of ring 0 or another context's ring (`foreign`). Reads answer 0. A reset unbinds every page. A queue of a context with a page is routed on the page's doorbell (`route_doorbell_page`), and on DOORBELL otherwise. A page bound to another context drops the routes on it of its old context's queues, so the host wakes no ring at a page but its context's. What the host and guest see: - the C API: `rvg_graphics_device_doorbell_write`, the config's `doorbell_pages` (third version) and the callbacks' `route_doorbell_page` (third version), whose thread docs/api.md section 5 names; - FEATURES_HI bit 14 is offered only where the host sets `doorbell_pages`; - QEMU's reims-graphics-pci (b4771167) maps BAR 4 and offers the pages; - a guest that does not take the bit, or a host that does not offer it, has every doorbell on DOORBELL as before: the bind is ignored and every BAR 4 write dropped (`without_doorbell_pages_the_doorbells_are_the_register_s`). The wire header's change rewrites the option ROM's record; its bytes are the same.
18 lines
1.3 KiB
TOML
18 lines
1.3 KiB
TOML
# prebuilt/ReimsGraphics.rom, the option ROM reims-ctl carries for reims-vgpu's own device,
|
|
# and the sha256 of each file it was built from: make -C firmware prebuilt writes both on a
|
|
# Mac, and make -C firmware prebuilt-check checks them against the tree. Built with:
|
|
# Apple clang version 21.0.0 (clang-2100.4.1.1)
|
|
# Homebrew LLD 23.1.5 (compatible with GNU linkers)
|
|
rom = "749434f87f562895548f60681cd4cd8bf6cc0d0e967ac2fea297674426709161"
|
|
|
|
[sources]
|
|
"crates/reims-vgpu-graphics/include/reims_graphics_wire.h" = "239e7acb95dc355a082a2a51f6e70130ec72ace40e8240607f28fc6fe6a4211a"
|
|
"firmware/Makefile" = "d85b14a3b40cc59b7c07a9e3a3a273c257e81c5674963c70c3c45eb386e653d0"
|
|
"firmware/src/OptionRom.S" = "b910fe61a880580996a81134fba75900d3a9f48ca266e76fe2d6b8eb5a011eb9"
|
|
"firmware/src/ReimsGraphics.c" = "554751ff15edbdf69a038d5b2aefd8315b9c54610c090c0890d9c72b13dacdef"
|
|
"firmware/src/ReimsGraphics.h" = "83e3439b9baf9c06ee75c57537792770efa7a5cb07e22bf1fb47f6ffef7af169"
|
|
"firmware/src/ReimsGraphicsName.c" = "107e7e34240a3942dcd410b701768ab81013f42932783b7fa90fcefc3f815f19"
|
|
"firmware/src/ReimsGraphicsOutput.c" = "c35ed747684d90c2b195d95613d79111a9f7c0777654f5f027ed9951bdd7a112"
|
|
"firmware/src/ReimsGraphicsRom.S" = "7b0482515ec151272c609b8a2c343476c525aa1f916997df0999e5eeaf42474c"
|
|
"firmware/src/Uefi.h" = "d9b349424b645428c114d141b0ca7c4b92ccef573803e16eea501258eb5572ee"
|