xcrdapi: export the 26100 XCrd surface and split DStorage X1/X2 #510

Merged
csj0oe merged 6 commits from upstream-pr/510 into main 2026-11-29 21:27:38 +00:00
csj0oe commented 2026-11-29 18:08:22 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by csj0oe on 2026-11-29T18:08:22Z.


What

The 26100 XCrd surface: 21 exports added to xcrdapi.def and answered by the provider, including the factory/queue split (X1/X2), the information and streaming accessors, and the DStorage X1/X2 split. Unimplemented regions stay honest: E_NOTIMPL with cleared outputs, FALSE from the predicates.

  • runtime/xcrdapi/src/xcrd.rs serves the added entry points from local state; XVD mount, device enumeration, XCRD information and streaming regions remain E_NOTIMPL.
  • tests/fixtures/xcrdapi-surface.json records our own declarations: exports and ordinals, the four interface identities, and the request offsets.
  • tests/test_xcrdapi_abi.py checks the .def against that fixture, reads the built DLL's export table, and asserts the interface identities and layout offsets, so drift fails the suite. It runs with no environment variables set.

Verification

  • python build.py xcrdapi; python -m unittest tests.test_xcrdapi_abi — 4 passed.
  • tuxbox.py verify --only xcrdapi --backend wine — PASS xcrdapi (xcrd=21 raw=16 zlib=16 guards=2 errors=2 cancellation=2 bc1=4 bc7=2 pages=3 autosubmit=64).
  • python tuxbox.py check --no-gpu — 7/7.
<!-- greyfinch-sync:brcly/TuxBox:issue:5553581899 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/510). Originally posted by [csj0oe](https://github.com/csj0oe) on 2026-11-29T18:08:22Z. --- ## What The 26100 XCrd surface: 21 exports added to `xcrdapi.def` and answered by the provider, including the factory/queue split (X1/X2), the information and streaming accessors, and the DStorage X1/X2 split. Unimplemented regions stay honest: `E_NOTIMPL` with cleared outputs, `FALSE` from the predicates. - `runtime/xcrdapi/src/xcrd.rs` serves the added entry points from local state; XVD mount, device enumeration, XCRD information and streaming regions remain `E_NOTIMPL`. - `tests/fixtures/xcrdapi-surface.json` records our own declarations: exports and ordinals, the four interface identities, and the request offsets. - `tests/test_xcrdapi_abi.py` checks the `.def` against that fixture, reads the built DLL's export table, and asserts the interface identities and layout offsets, so drift fails the suite. It runs with no environment variables set. ## Verification - `python build.py xcrdapi`; `python -m unittest tests.test_xcrdapi_abi` — 4 passed. - `tuxbox.py verify --only xcrdapi --backend wine` — `PASS xcrdapi` (`xcrd=21 raw=16 zlib=16 guards=2 errors=2 cancellation=2 bc1=4 bc7=2 pages=3 autosubmit=64`). - `python tuxbox.py check --no-gpu` — 7/7.
brcly commented 2026-11-29 20:38:00 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-29T20:38:00Z.


Thanks, the exports and the X1/X2 split look fine in principle, and the layout check skipping when no reference is present is the right approach. It conflicts with main now; could you rebase it?

<!-- greyfinch-sync:brcly/TuxBox:comment:7262235858 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/510#issuecomment-7262235858). Originally posted by [brcly](https://github.com/brcly) on 2026-11-29T20:38:00Z. --- Thanks, the exports and the X1/X2 split look fine in principle, and the layout check skipping when no reference is present is the right approach. It conflicts with `main` now; could you rebase it?
brcly commented 2026-11-29 21:11:43 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-29T21:11:43Z.


Thanks, this addresses what I raised. We're putting it through the full check on both of our cards with your other ready PRs now, and will merge it if it passes.

<!-- greyfinch-sync:brcly/TuxBox:comment:7262680398 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/510#issuecomment-7262680398). Originally posted by [brcly](https://github.com/brcly) on 2026-11-29T21:11:43Z. --- Thanks, this addresses what I raised. We're putting it through the full check on both of our cards with your other ready PRs now, and will merge it if it passes.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox!510
No description provided.