Skip to content

WIP: refactor(migtd/migration): drop Service.Query leaf and its tests#889

Draft
sgrams wants to merge 2 commits into
intel:mainfrom
sgrams:t7-drop-service-envelope
Draft

WIP: refactor(migtd/migration): drop Service.Query leaf and its tests#889
sgrams wants to merge 2 commits into
intel:mainfrom
sgrams:t7-drop-service-envelope

Conversation

@sgrams

@sgrams sgrams commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

GHCI 1.5 v6 has no Service.Query sub-function (Tables 3-42 / 3-45 / 3-52 / 3-59 / 3-62 — only the <MigTD.*> per-API leaves: WaitForRequest, ReportStatus, Send, Receive). Service.Query was a v5 holdover used to probe VMM support before any real work; in v6 the support check is implicit in calling MigTD.WaitForRequest itself.

Remove:

  • migration::session::query() — the only caller of the Service.Query envelope path
  • ServiceQueryResponse struct and QUERY_COMMAND constant in migration::data
  • tests/test-td-payload's testservice case and its tcs002 entry in the JSON config
  • src/migtd/fuzz service_response and afl_service_response targets (and their seed corpus) which exclusively exercised the dead response wrapper

@sgrams sgrams self-assigned this Jun 9, 2026
@sgrams sgrams force-pushed the t7-drop-service-envelope branch from b0677bd to 39145b2 Compare June 9, 2026 10:12
@sgrams sgrams changed the title refactor(migtd/migration): drop v5 Service.Query leaf and its tests refactor(migtd/migration): drop Service.Query leaf and its tests Jun 9, 2026
The April 2026 GHCI 1.5 revision has no Service.Query sub-function
(Tables 3-42 / 3-45 / 3-52 / 3-59 / 3-62 — only the <MigTD.*> per-API
leaves: WaitForRequest, ReportStatus, Send, Receive). Service.Query
was a February 2026 GHCI 1.5 holdover used to probe VMM support before
any real work; in the April 2026 revision the support check is
implicit in calling MigTD.WaitForRequest itself.

Remove:
  * migration::session::query() — the only caller of the Service.Query
    envelope path
  * ServiceQueryResponse struct and QUERY_COMMAND constant in
    migration::data
  * tests/test-td-payload's testservice case and its tcs002 entry in
    the JSON config
  * src/migtd/fuzz service_response and afl_service_response targets
    (and their seed corpus) which exclusively exercised the dead
    response wrapper

Signed-off-by: Stanislaw Grams <stanislaw.grams@intel.com>
@sgrams sgrams force-pushed the t7-drop-service-envelope branch from 39145b2 to 0388861 Compare June 9, 2026 10:12
@sgrams

sgrams commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Deprecation of Service is not required for June release, old APIs are permittable

…wn leaf scaffolding

April 2026 GHCI 1.5 has no MigTD.Shutdown sub-function. session::shutdown() had no callers anywhere in the workspace; it was a legacy holdover from the February 2026 GHCI 1.5 envelope era when WaitForRequest carried a shutdown opcode (operation=0).

Removes:

  * pub fn shutdown() in src/migtd/src/migration/session.rs

  * pub const MIG_COMMAND_SHUT_DOWN: u8 = 0; in src/migtd/src/migration/data.rs

  * pub struct ServiceMigWaitForReqShutdown in src/migtd/src/migration/data.rs

Second slice of T7 (envelope drop) on branch t7-drop-service-envelope; the remaining envelope users (wait_for_request, report_status, both non-vmcall-raw) are blocked on a real spec gap: the per-leaf MigTD.WaitForRequest response (Table 3-47) carries no slot for vsock peer CID/port or the legacy migpolicy HOB. Migrating them would break virtio-vsock peer discovery and is tracked separately.

Signed-off-by: Stanislaw Grams <stanislaw.grams@intel.com>
@sgrams sgrams changed the title refactor(migtd/migration): drop Service.Query leaf and its tests WIP - refactor(migtd/migration): drop Service.Query leaf and its tests Jun 9, 2026
@sgrams sgrams changed the title WIP - refactor(migtd/migration): drop Service.Query leaf and its tests WIP: refactor(migtd/migration): drop Service.Query leaf and its tests Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant