Skip to content

Conversation

@justus-camp-microsoft
Copy link
Contributor

Intended to be an equivalent change for MANA to #2401, but with some minor differences. NVMe keepalive is added to the boot cmdline by default but MANA keepalive is not, so this adds it to petri's command line builder.

@justus-camp-microsoft justus-camp-microsoft requested a review from a team as a code owner November 20, 2025 00:38
Copilot AI review requested due to automatic review settings November 20, 2025 00:38
Copilot finished reviewing on behalf of justus-camp-microsoft November 20, 2025 00:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables MANA keepalive by default for all tests, making it consistent with NVMe keepalive behavior. Unlike NVMe keepalive which is added to the boot command line by OpenHCL boot, MANA keepalive requires explicit configuration through the petri test framework.

Key changes:

  • Default servicing flags now enable MANA keepalive for OpenVMM backend
  • MANA keepalive command line parameter automatically added to all test configurations
  • Test no longer needs to explicitly set MANA keepalive parameters

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
vmm_tests/vmm_tests/tests/tests/multiarch/openhcl_servicing.rs Removes explicit MANA keepalive command line setting from test, now uses default configuration
petri/src/vm/openvmm/mod.rs Sets enable_mana_keepalive to true in default servicing flags for OpenVMM backend
petri/src/vm/mod.rs Adds OPENHCL_MANA_KEEP_ALIVE=host,privatepool to OpenHCL command line by default for all tests

@github-actions
Copy link

@justus-camp-microsoft justus-camp-microsoft force-pushed the enable_mana_ka_for_all_tests branch from 0d03e4f to 912ae81 Compare December 1, 2025 22:48
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

@mattkur
Copy link
Contributor

mattkur commented Dec 2, 2025

Nice. This looks good, and glad that it caught a bug.

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

justus-camp-microsoft added a commit that referenced this pull request Dec 2, 2025
#2461 found a bug in MANA's keepalive implementation, where we can race
on an empty collection which results in a divide by zero in
futures-concurrency. This checks for that condition and returns early if
there are no endpoints configured.
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

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.

2 participants