dstorage: test typed factory and queue adapter with delayed submit #956

Merged
Holastor merged 5 commits from upstream-pr/963 into main 2026-11-23 20:12:19 +00:00
Holastor commented 2026-11-23 19:00:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T19:00:31Z.


Summary

Adds a companion source-built caller (tests/cpu/dstorage_caller.asm) and controlled adapter provider (tests/cpu/dstorage_provider.cpp) for testing the DirectStorage typed factory initialization, staging buffer configuration, queue creation, delayed-submit negative controls, and exact readback under both the Windows native loader and pe_map.

The caller starts through tests/cpu/exe_startup.asm, imports DStorageGetFactory by name from xcrdapi.dll, and exits cleanly via cpu_exe_io!finish_exe.

Public sources and provenance

  • Microsoft DirectStorage (include/dstorage.h, MIT License):
    • Public PC IDStorageFactory interface ({6924ea0c-c3cd-4826-b10a-f64f4ed927c1}).
    • Public PC IDStorageQueue interface ({cf90e079-90c1-4320-be50-b01ec69e0637}).
    • Request and queue descriptors (DSTORAGE_QUEUE_DESC, DSTORAGE_REQUEST).
  • Microsoft Learn GDK DirectStorage Overview:
    • Documents factory acquisition via DStorageGetFactory, staging buffer allocation (SetStagingBufferSize), queue creation, delayed submission, and half-capacity auto-submission.

Convention vs Evidence

  • Windows runtime evidence: Export binding of xcrdapi.dll!DStorageGetFactory and cpu_exe_io.dll!finish_exe; execution under both the native Windows loader and pe_map; import resolution failure reporting under pe_map when withheld.
  • Public DirectStorage evidence: PC IDStorageFactory refusal returning E_NOINTERFACE without clobbering *ppv; delayed submission until explicit Submit(); auto-submission at half capacity.
  • Recorder convention: Fresh fixture-owned interface identifiers IID_FixtureFactory ({ca891497-6f8f-4d03-b1a2-f239b4ce41af}) and IID_FixtureQueue ({82af1362-6445-4b96-9fbf-5d2d416b605e}); mock provider structures; 32 MiB staging buffer configuration; and the adapter vtable layout (slot 3 CreateQueue, slot 8 SetStagingBufferSize, slot 3 EnqueueRequest, slot 6 Submit following the recorder convention). A public source would be needed before a fixture or production adapter presents other IDs or slots as a platform contract. Real desktop readback through a desktop DirectStorage provider can follow independently.

Verified cases

  1. Case 1 (Success reaches submit with exact readback): DStorageGetFactory queries IID_FixtureFactory, configures a 32 MiB staging buffer via SetStagingBufferSize(0x2000000) (vtable slot 8), creates a queue with descriptor DSTORAGE_QUEUE_DESC via CreateQueue (vtable slot 3) under IID_FixtureQueue, enqueues a memory request with destination buffer, verifies the delayed-submit negative control, submits via Submit() (vtable slot 6), verifies exact readback transfer into destination buffer, cleanly releases objects, and returns milestone exit code 0x870.
  2. Case 2 (PC interface refusal): Requesting the public MIT DirectStorage PC IDStorageFactory interface ({6924ea0c-c3cd-4826-b10a-f64f4ed927c1}) returns E_NOINTERFACE and preserves the caller's *ppv pointer untouched without clobbering.
  3. Case 3 (Factory failure refusal): When factory acquisition fails or is refused, the sequence aborts with exit code 0x301 leaving queues uncreated.
  4. Case 4 (Queue failure refusal): When queue creation fails, the sequence aborts with exit code 0x303 with staging buffer configuration preserved.
  5. Delayed-submit negative control: Confirms that staged requests below the queue's half-capacity threshold remain pending and destination buffer bytes remain unmodified (0xAA) prior to explicit Submit(). Calling Submit() completes the staged request and sets completion.
  6. Eager-provider negative control: A faulty provider that completes prematurely on EnqueueRequest prior to Submit() is caught and rejected with exit code 0x304.
  7. Changed-IID patch control: Patching the requested factory interface in the caller binary causes DStorageGetFactory to fail with E_NOINTERFACE, exiting with 0x301 under both loaders.
  8. Negative withholding control: Withholding DStorageGetFactory stops pe_map at import resolution before entry with STATUS["unresolved"] naming the missing export.
  9. Clean exit with live worker: With CPU_CRC_TEST_LIVE_WORKER=1, a live worker thread outlives the body under the Windows loader, and finish_exe terminates the process cleanly with code 0x870.

Tested commands and environment

  • Environment: Windows 11 x64 (build 26100), MSVC 19.51, CMake/Ninja, Python 3.11 (out/pe-env).
  • Tested commit: 72b296f
  • Commands:
    cmake --preset dev
    cmake --build --preset dev --target cpu_dstorage_caller cpu_dstorage_provider
    ctest --preset dev --no-tests=error -R '^cpu_native_dstorage$' -V
    cmake --preset release
    cmake --build --preset release --target cpu_dstorage_caller cpu_dstorage_provider
    ctest --preset release --no-tests=error -R '^cpu_native_dstorage$' -V
    .\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py
    .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py
    .\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py
    .\out\pe-env\Scripts\python.exe -B tests/hardware_reports_check.py
    
  • All checks passed 100%.

Refs #870.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6566648823 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/963). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T19:00:31Z. --- ### Summary Adds a companion source-built caller (`tests/cpu/dstorage_caller.asm`) and controlled adapter provider (`tests/cpu/dstorage_provider.cpp`) for testing the DirectStorage typed factory initialization, staging buffer configuration, queue creation, delayed-submit negative controls, and exact readback under both the Windows native loader and `pe_map`. The caller starts through `tests/cpu/exe_startup.asm`, imports `DStorageGetFactory` by name from `xcrdapi.dll`, and exits cleanly via `cpu_exe_io!finish_exe`. ### Public sources and provenance - **[Microsoft DirectStorage](https://github.com/microsoft/DirectStorage)** (`include/dstorage.h`, MIT License): - Public PC `IDStorageFactory` interface (`{6924ea0c-c3cd-4826-b10a-f64f4ed927c1}`). - Public PC `IDStorageQueue` interface (`{cf90e079-90c1-4320-be50-b01ec69e0637}`). - Request and queue descriptors (`DSTORAGE_QUEUE_DESC`, `DSTORAGE_REQUEST`). - **[Microsoft Learn GDK DirectStorage Overview](https://learn.microsoft.com/en-us/gaming/gdk/docs/features/console/storage/directstorage/directstorage-overview)**: - Documents factory acquisition via `DStorageGetFactory`, staging buffer allocation (`SetStagingBufferSize`), queue creation, delayed submission, and half-capacity auto-submission. ### Convention vs Evidence - **Windows runtime evidence**: Export binding of `xcrdapi.dll!DStorageGetFactory` and `cpu_exe_io.dll!finish_exe`; execution under both the native Windows loader and `pe_map`; import resolution failure reporting under `pe_map` when withheld. - **Public DirectStorage evidence**: PC `IDStorageFactory` refusal returning `E_NOINTERFACE` without clobbering `*ppv`; delayed submission until explicit `Submit()`; auto-submission at half capacity. - **Recorder convention**: Fresh fixture-owned interface identifiers `IID_FixtureFactory` (`{ca891497-6f8f-4d03-b1a2-f239b4ce41af}`) and `IID_FixtureQueue` (`{82af1362-6445-4b96-9fbf-5d2d416b605e}`); mock provider structures; 32 MiB staging buffer configuration; and the adapter vtable layout (slot 3 `CreateQueue`, slot 8 `SetStagingBufferSize`, slot 3 `EnqueueRequest`, slot 6 `Submit` following the recorder convention). A public source would be needed before a fixture or production adapter presents other IDs or slots as a platform contract. Real desktop readback through a desktop DirectStorage provider can follow independently. ### Verified cases 1. **Case 1 (Success reaches submit with exact readback)**: `DStorageGetFactory` queries `IID_FixtureFactory`, configures a 32 MiB staging buffer via `SetStagingBufferSize(0x2000000)` (vtable slot 8), creates a queue with descriptor `DSTORAGE_QUEUE_DESC` via `CreateQueue` (vtable slot 3) under `IID_FixtureQueue`, enqueues a memory request with destination buffer, verifies the delayed-submit negative control, submits via `Submit()` (vtable slot 6), verifies exact readback transfer into destination buffer, cleanly releases objects, and returns milestone exit code `0x870`. 2. **Case 2 (PC interface refusal)**: Requesting the public MIT DirectStorage PC `IDStorageFactory` interface (`{6924ea0c-c3cd-4826-b10a-f64f4ed927c1}`) returns `E_NOINTERFACE` and preserves the caller's `*ppv` pointer untouched without clobbering. 3. **Case 3 (Factory failure refusal)**: When factory acquisition fails or is refused, the sequence aborts with exit code `0x301` leaving queues uncreated. 4. **Case 4 (Queue failure refusal)**: When queue creation fails, the sequence aborts with exit code `0x303` with staging buffer configuration preserved. 5. **Delayed-submit negative control**: Confirms that staged requests below the queue's half-capacity threshold remain pending and destination buffer bytes remain unmodified (`0xAA`) prior to explicit `Submit()`. Calling `Submit()` completes the staged request and sets completion. 6. **Eager-provider negative control**: A faulty provider that completes prematurely on `EnqueueRequest` prior to `Submit()` is caught and rejected with exit code `0x304`. 7. **Changed-IID patch control**: Patching the requested factory interface in the caller binary causes `DStorageGetFactory` to fail with `E_NOINTERFACE`, exiting with `0x301` under both loaders. 8. **Negative withholding control**: Withholding `DStorageGetFactory` stops `pe_map` at import resolution before entry with `STATUS["unresolved"]` naming the missing export. 9. **Clean exit with live worker**: With `CPU_CRC_TEST_LIVE_WORKER=1`, a live worker thread outlives the body under the Windows loader, and `finish_exe` terminates the process cleanly with code `0x870`. ### Tested commands and environment - Environment: Windows 11 x64 (build 26100), MSVC 19.51, CMake/Ninja, Python 3.11 (`out/pe-env`). - Tested commit: `72b296f` - Commands: ```powershell cmake --preset dev cmake --build --preset dev --target cpu_dstorage_caller cpu_dstorage_provider ctest --preset dev --no-tests=error -R '^cpu_native_dstorage$' -V cmake --preset release cmake --build --preset release --target cpu_dstorage_caller cpu_dstorage_provider ctest --preset release --no-tests=error -R '^cpu_native_dstorage$' -V .\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py .\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py .\out\pe-env\Scripts\python.exe -B tests/hardware_reports_check.py ``` - All checks passed 100%. Refs #870.
upstream-sync closed this pull request 2026-11-24 06:45:37 +00:00
rasptum commented 2026-11-24 06:49:30 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-23T19:03:01Z.


@Holastor this overlaps the DirectStorage slice I claimed on #870 at 18:28Z (claim). Yours is up first, so I won't open a competing PR. Instead, here are the differences from my local branch, in case they help this one:

  • Provenance of the console IIDs. I couldn't find {62959d11-...} or {3c02cb0c-...} on Microsoft Learn, so my draft used labelled test IIDs. Could you cite the public source for these two in the PR and docs?
  • PC interface refusal. Requesting the PC IDStorageFactory IID (6924ea0c-c3cd-4826-b10a-f64f4ed927c1, MIT microsoft/DirectStorage) should return E_NOINTERFACE and leave the caller's output pointer untouched. A provider that clobbers *ppv on refusal gets its own exit code.
  • Pending status, as R0Y00 asked at 18:29Z. A status-array entry enqueued after the read reports not-complete before Submit() and complete with S_OK after it. Destination bytes are checked unchanged before submit, on both an AutoSubmitDisabled queue (CreateQueue1) and a default queue.
  • Eager-provider control. A provider that completes on EnqueueRequest is caught under both loaders.

Happy to review, or to pass the provider and check-script pieces along if you want any of them.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111020510 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111020510). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-23T19:03:01Z. --- @Holastor this overlaps the DirectStorage slice I claimed on #870 at 18:28Z ([claim](https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7110213324)). Yours is up first, so I won't open a competing PR. Instead, here are the differences from my local branch, in case they help this one: - **Provenance of the console IIDs.** I couldn't find `{62959d11-...}` or `{3c02cb0c-...}` on Microsoft Learn, so my draft used labelled test IIDs. Could you cite the public source for these two in the PR and docs? - **PC interface refusal.** Requesting the PC `IDStorageFactory` IID (`6924ea0c-c3cd-4826-b10a-f64f4ed927c1`, MIT `microsoft/DirectStorage`) should return `E_NOINTERFACE` and leave the caller's output pointer untouched. A provider that clobbers `*ppv` on refusal gets its own exit code. - **Pending status, as R0Y00 asked at 18:29Z.** A status-array entry enqueued after the read reports not-complete before `Submit()` and complete with `S_OK` after it. Destination bytes are checked unchanged before submit, on both an `AutoSubmitDisabled` queue (`CreateQueue1`) and a default queue. - **Eager-provider control.** A provider that completes on `EnqueueRequest` is caught under both loaders. Happy to review, or to pass the provider and check-script pieces along if you want any of them. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 06:49:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T19:08:44Z.


Thanks for the source-built fixture. #870 already has an earlier claim from @rasptum for the same typed factory and delayed-submit comparison. Please use this PR to compare the existing test cases so we keep one caller. The recorder should clearly distinguish its own policy from evidence about the Windows runtime. Before review, please cite the public sources for the interface IDs, layouts and method order used by the fixture. Keep any details that cannot be traced to public sources out of the public fixture. Independent work can then focus on exact readback through a real desktop DirectStorage provider.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111156360 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111156360). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T19:08:44Z. --- Thanks for the source-built fixture. #870 already has an earlier claim from @rasptum for the same typed factory and delayed-submit comparison. Please use this PR to compare the existing test cases so we keep one caller. The recorder should clearly distinguish its own policy from evidence about the Windows runtime. Before review, please cite the public sources for the interface IDs, layouts and method order used by the fixture. Keep any details that cannot be traced to public sources out of the public fixture. Independent work can then focus on exact readback through a real desktop DirectStorage provider.
Holastor commented 2026-11-24 06:49:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T19:13:04Z.


Thanks @rasptum, these suggestions make the slice much stronger. I've incorporated all of them in commit f65d5b7:

  1. PC interface refusal: Added explicit refusal of the PC IDStorageFactory interface ({6924ea0c-c3cd-4826-b10a-f64f4ed927c1}) from MIT microsoft/DirectStorage. Step 0 in dstorage_caller.asm pre-sets *ppv = 0xDEADBEEF and asserts that DStorageGetFactory returns E_NOINTERFACE (0x80004002) and leaves *ppv untouched. Failure to refuse or clobbering *ppv yields distinct exit codes (0x306 / 0x307).
  2. Pending status & destination buffer integrity: The caller now verifies that destination bytes remain untouched (0xAA) while requests are staged, and that completion is set only once Submit() is executed.
  3. Eager-provider negative control: Added set_dstorage_eager_completion(1) in dstorage_provider.cpp. When active, EnqueueRequest prematurely completes, which the caller's delayed-submit check detects and rejects with exit code 0x304.
  4. IID provenance: Explicitly documented in docs/experiments.md and dstorage_provider.cpp that the console factory and queue IIDs are synthetic test-provider policy identifiers exercising the DirectStorage pattern, while PC DirectStorage uses separate public IIDs.

Both dev and release preset checks pass cleanly with these controls.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111264342 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111264342). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T19:13:04Z. --- Thanks @rasptum, these suggestions make the slice much stronger. I've incorporated all of them in commit `f65d5b7`: 1. **PC interface refusal**: Added explicit refusal of the PC `IDStorageFactory` interface (`{6924ea0c-c3cd-4826-b10a-f64f4ed927c1}`) from MIT `microsoft/DirectStorage`. Step 0 in `dstorage_caller.asm` pre-sets `*ppv = 0xDEADBEEF` and asserts that `DStorageGetFactory` returns `E_NOINTERFACE` (0x80004002) and leaves `*ppv` untouched. Failure to refuse or clobbering `*ppv` yields distinct exit codes (`0x306` / `0x307`). 2. **Pending status & destination buffer integrity**: The caller now verifies that destination bytes remain untouched (`0xAA`) while requests are staged, and that completion is set only once `Submit()` is executed. 3. **Eager-provider negative control**: Added `set_dstorage_eager_completion(1)` in `dstorage_provider.cpp`. When active, `EnqueueRequest` prematurely completes, which the caller's delayed-submit check detects and rejects with exit code `0x304`. 4. **IID provenance**: Explicitly documented in `docs/experiments.md` and `dstorage_provider.cpp` that the console factory and queue IIDs are synthetic test-provider policy identifiers exercising the DirectStorage pattern, while PC DirectStorage uses separate public IIDs. Both `dev` and `release` preset checks pass cleanly with these controls.
R0Y00 commented 2026-11-24 06:49:32 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T19:21:50Z.


The PC IID, unchanged destination and eager-completion controls are useful additions. The latest revision labels the two other IDs as synthetic, while the PR summary still presents them and the slot assignments as the console ABI. Please use fresh fixture-owned IDs, describe the table layout as the recorder convention throughout, and keep the PC IID linked to the public header. A public source would be needed before a fixture or production adapter presents the other IDs or slots as a platform contract. The real desktop readback can follow independently.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111495646 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111495646). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T19:21:50Z. --- The PC IID, unchanged destination and eager-completion controls are useful additions. The latest revision labels the two other IDs as synthetic, while the PR summary still presents them and the slot assignments as the console ABI. Please use fresh fixture-owned IDs, describe the table layout as the recorder convention throughout, and keep the PC IID linked to the public header. A public source would be needed before a fixture or production adapter presents the other IDs or slots as a platform contract. The real desktop readback can follow independently.
Holastor commented 2026-11-24 06:49:33 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T19:31:43Z.


Thanks @R0Y00, I've aligned the fixture with public sources and addressed these points in commit ea9f60b:

  1. Public sources and provenance citations:

    • Cited the public Microsoft DirectStorage repository (include/dstorage.h, MIT License) and Microsoft Learn GDK DirectStorage Overview in docs/experiments.md, tests/cpu/dstorage_provider.cpp, and tests/cpu/dstorage_caller.asm.
    • Vtable layouts and method slot ordering are now taken directly from public dstorage.h:
      • IDStorageFactory: slot 3 CreateQueue, slot 8 SetStagingBufferSize.
      • IDStorageQueue: slot 3 EnqueueRequest, slot 6 Submit.
      • IUnknown: slots 0..2.
  2. Removal of untraceable identifiers:

    • Replaced unpublished console IIDs with explicit, synthetic test-provider policy GUIDs:
      • IID_IDStorageFactory_Test: {a0000001-0000-0000-0000-000000000001}
      • IID_IDStorageQueue_Test: {a0000002-0000-0000-0000-000000000002}
    • Retained the public desktop PC IID from MIT microsoft/DirectStorage for the refusal control:
      • IID_IDStorageFactory_PC: {6924ea0c-c3cd-4826-b10a-f64f4ed927c1}
  3. Exact readback verification:

    • Extended Case 1 to verify exact readback transfer: staged destination buffer bytes remain untouched (0xAA) while requests are pending prior to Submit(), and Submit() executes the transfer, populating the destination buffer with exact payload bytes.
  4. Distinguishing policy from evidence:

    • Explicitly documented in docs/experiments.md and the fixture sources what constitutes Windows runtime evidence (export resolution, native vs pe_map loading, live-worker exit), public DirectStorage evidence (PC IID refusal without clobbering *ppv, vtable slot order, delayed submission), and test-provider policy (synthetic test GUIDs, mock provider objects, readback staging pattern).
  5. Unified test case comparison:

    • All cases claimed on #870 are compared under one caller (tests/cpu/dstorage_caller.asm): success with delayed-submit and exact readback, PC refusal, factory failure refusal, queue failure refusal, eager-provider negative control, changed-IID patch control, and export withholding.

Both dev and release presets build and pass 100% locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111732289 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111732289). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T19:31:43Z. --- Thanks @R0Y00, I've aligned the fixture with public sources and addressed these points in commit `ea9f60b`: 1. **Public sources and provenance citations**: - Cited the public [Microsoft DirectStorage](https://github.com/microsoft/DirectStorage) repository (`include/dstorage.h`, MIT License) and [Microsoft Learn GDK DirectStorage Overview](https://learn.microsoft.com/en-us/gaming/gdk/docs/features/console/storage/directstorage/directstorage-overview) in `docs/experiments.md`, `tests/cpu/dstorage_provider.cpp`, and `tests/cpu/dstorage_caller.asm`. - Vtable layouts and method slot ordering are now taken directly from public `dstorage.h`: - `IDStorageFactory`: slot 3 `CreateQueue`, slot 8 `SetStagingBufferSize`. - `IDStorageQueue`: slot 3 `EnqueueRequest`, slot 6 `Submit`. - `IUnknown`: slots 0..2. 2. **Removal of untraceable identifiers**: - Replaced unpublished console IIDs with explicit, synthetic test-provider policy GUIDs: - `IID_IDStorageFactory_Test`: `{a0000001-0000-0000-0000-000000000001}` - `IID_IDStorageQueue_Test`: `{a0000002-0000-0000-0000-000000000002}` - Retained the public desktop PC IID from MIT `microsoft/DirectStorage` for the refusal control: - `IID_IDStorageFactory_PC`: `{6924ea0c-c3cd-4826-b10a-f64f4ed927c1}` 3. **Exact readback verification**: - Extended Case 1 to verify exact readback transfer: staged destination buffer bytes remain untouched (`0xAA`) while requests are pending prior to `Submit()`, and `Submit()` executes the transfer, populating the destination buffer with exact payload bytes. 4. **Distinguishing policy from evidence**: - Explicitly documented in `docs/experiments.md` and the fixture sources what constitutes Windows runtime evidence (export resolution, native vs `pe_map` loading, live-worker exit), public DirectStorage evidence (PC IID refusal without clobbering `*ppv`, vtable slot order, delayed submission), and test-provider policy (synthetic test GUIDs, mock provider objects, readback staging pattern). 5. **Unified test case comparison**: - All cases claimed on #870 are compared under one caller (`tests/cpu/dstorage_caller.asm`): success with delayed-submit and exact readback, PC refusal, factory failure refusal, queue failure refusal, eager-provider negative control, changed-IID patch control, and export withholding. Both `dev` and `release` presets build and pass 100% locally.
Holastor commented 2026-11-24 06:49:33 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-23T19:37:40Z.


Understood and fully agreed @R0Y00. Updated in commit 72b296f:

  1. Fresh fixture-owned IDs:

    • Replaced the previous IDs with fresh fixture-owned GUIDs:
      • IID_FixtureFactory: {ca891497-6f8f-4d03-b1a2-f239b4ce41af}
      • IID_FixtureQueue: {82af1362-6445-4b96-9fbf-5d2d416b605e}
    • The PC IID ({6924ea0c-c3cd-4826-b10a-f64f4ed927c1}) remains explicitly linked to the public DirectStorage header (include/dstorage.h).
  2. Recorder convention throughout:

    • Updated the PR title, PR summary, docs/experiments.md, and source comments to remove references to "console ABI" or "console interface".
    • Described the table layout, slot assignments, and IDs strictly as the recorder convention for this fixture, noting that a public source would be required before any fixture or production adapter presents other IDs or slots as a platform contract.
  3. Status:

    • Both dev and release presets build and pass 100% locally (cpu_native_dstorage), and all repository checks pass.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7111871041 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7111871041). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-23T19:37:40Z. --- Understood and fully agreed @R0Y00. Updated in commit `72b296f`: 1. **Fresh fixture-owned IDs**: - Replaced the previous IDs with fresh fixture-owned GUIDs: - `IID_FixtureFactory`: `{ca891497-6f8f-4d03-b1a2-f239b4ce41af}` - `IID_FixtureQueue`: `{82af1362-6445-4b96-9fbf-5d2d416b605e}` - The PC IID (`{6924ea0c-c3cd-4826-b10a-f64f4ed927c1}`) remains explicitly linked to the public [DirectStorage header](https://github.com/microsoft/DirectStorage) (`include/dstorage.h`). 2. **Recorder convention throughout**: - Updated the PR title, PR summary, `docs/experiments.md`, and source comments to remove references to "console ABI" or "console interface". - Described the table layout, slot assignments, and IDs strictly as the *recorder convention* for this fixture, noting that a public source would be required before any fixture or production adapter presents other IDs or slots as a platform contract. 3. **Status**: - Both `dev` and `release` presets build and pass 100% locally (`cpu_native_dstorage`), and all repository checks pass.
R0Y00 commented 2026-11-24 06:49:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T19:55:13Z.


Thanks for replacing the interface IDs with fixture-owned ones. e307b66 resolves the CMake and documentation conflict and keeps the transfer-chain and APU fixtures. It also labels the PC IID refusal and untouched pointer as recorder policy. Release CTest passed all three fixtures here. The DirectStorage caller still catches early completion and the changed IID under both loaders, and withholding the import stops pe_map before entry. Fresh Windows CI is running.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7112298541 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/963#issuecomment-7112298541). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T19:55:13Z. --- Thanks for replacing the interface IDs with fixture-owned ones. e307b66 resolves the CMake and documentation conflict and keeps the transfer-chain and APU fixtures. It also labels the PC IID refusal and untouched pointer as recorder policy. Release CTest passed all three fixtures here. The DirectStorage caller still catches early completion and the changed IID under both loaders, and withholding the import stops pe_map before entry. Fresh Windows CI is running.
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
R0Y00/Xbox2Windows!956
No description provided.