Skip to content

[shimV2] Remove vpmem controller and related config from V2 shim code paths#2703

Merged
rawahars merged 3 commits intomicrosoft:mainfrom
rawahars:remove_vpmem_v2
Apr 23, 2026
Merged

[shimV2] Remove vpmem controller and related config from V2 shim code paths#2703
rawahars merged 3 commits intomicrosoft:mainfrom
rawahars:remove_vpmem_v2

Conversation

@rawahars
Copy link
Copy Markdown
Contributor

Summary

This pull request removes all support for configuring VPMem (Virtual Persistent Memory) devices in v2 LCOW (Linux Containers on Windows) shims. VPMem-related options are now explicitly rejected, and the codebase and tests are updated accordingly to reflect that v2 shims do not support VPMem devices. The changes simplify device configuration logic and clarify the expected behavior for confidential and non-confidential scenarios.

Key changes include:

Removal of VPMem support in device configuration:

  • The parseDeviceOptions function in devices.go no longer configures or returns a VPMem controller; any attempt to enable VPMem now returns an error stating that v2 shims do not support VPMem devices. Default VPMem count is set to 0, and VPMem-related parameters and logic are removed.

  • The BuildSandboxConfig function and related code paths are updated to remove references to VPMem controllers and to stop passing or using VPMem-related arguments.

Test suite updates:

  • All tests in specs_test.go that previously expected VPMem to be configured or validated VPMem-specific behavior are rewritten or removed. New tests assert that attempts to configure VPMem result in errors, and that VPMem is always unset in the resulting VM config.

Documentation and comments:

  • Documentation and comments throughout the codebase are updated to remove references to VPMem as a supported device type in v2 shims.

Kernel argument construction:

  • Kernel argument builders no longer take or use VPMem-related parameters.
    tests accurately reflect this unsupported scenario.

The v2 LCOW shim does not support vPMem devices. Reject any request
that asks for a non-zero vPMem count and stop emitting a
VirtualPMemController in the compute system document.

Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
@rawahars rawahars requested a review from a team as a code owner April 23, 2026 17:48
Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
…ration

Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
@rawahars rawahars merged commit 858674a into microsoft:main Apr 23, 2026
32 of 33 checks passed
@rawahars rawahars deleted the remove_vpmem_v2 branch April 23, 2026 18:58
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