Skip to content

fix(dstack-mr-cli): default --hotplug-off to the VMM's default - #1405

Merged
kvinwang merged 1 commit into
nextfrom
fix/dstack-mr-cli-hotplug-default
Sep 26, 2026
Merged

kvinwang merged 1 commit into
nextfrom
fix/dstack-mr-cli-hotplug-default

Conversation

@kvinwang

Copy link
Copy Markdown
Collaborator

#1387 changed the VMM default to qemu_hotplug_off = true and made ACPI generation reject hotplug with GPU root ports, but dstack-mr measure still defaulted --hotplug-off to false. Measuring a default-configured CVM therefore gave the wrong RTMRs, and --num-gpus 1 failed with HotplugWithRootPorts unless the flag was passed explicitly.

Found by the PR 841 acceptance suite (tc-ver-tools-001/002 GPU rows).

Verification

  • dstack-mr measure --help shows [default: true].
  • cargo test -p dstack-mr-cli passes.

#1387 made the VMM default qemu_hotplug_off to true and made ACPI generation
reject hotplug with GPU root ports, but left the CLI defaulting to false. A
measurement of a default VMM CVM therefore came out wrong, and one with GPUs
failed with HotplugWithRootPorts, unless --hotplug-off true was passed.

Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang added a commit that referenced this pull request Sep 25, 2026
The measure CLI defaulted --hotplug-off to false and now follows the VMM
default of true (PR #1405), while diagnose reads hotplug_off from the
VmConfig, where it defaults to false. The diagnose-matches-measure row
therefore compared two machines that differ in the ACPI tables, and
RTMR[0] diverged.

Pass --hotplug-off on every measure row and hotplug_off in the diagnose
VmConfig, so the matrix measures the same machine whichever default the
CLI ships. The advanced-machine-fields row now turns hotplug on so it
still moves the field away from the baseline.

Signed-off-by: Kevin Wang <wy721@qq.com>
@kvinwang
kvinwang merged commit 635e7a2 into next Sep 26, 2026
11 checks passed
@kvinwang
kvinwang deleted the fix/dstack-mr-cli-hotplug-default branch September 26, 2026 00:50
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