Skip to content

[shimV2] refactor VM controller + network controller#2690

Merged
rawahars merged 1 commit intomicrosoft:mainfrom
rawahars:network_controller_refactor
Apr 17, 2026
Merged

[shimV2] refactor VM controller + network controller#2690
rawahars merged 1 commit intomicrosoft:mainfrom
rawahars:network_controller_refactor

Conversation

@rawahars
Copy link
Copy Markdown
Contributor

Earlier, we created the HCS document in the service layer and then passed that along to the VM Controller in Create call. This also leaks other VM options such as confidential, etc into service layer which can be encapsulated within the VM Controller.

Basically, service sends the specs to vmController.Create. It calls the LCOW or WCOW tagged file to generate the HCS document and sandbox options which it stores internally. Next during Start it references the same to create Confidential stack.
For other cases such as Network controller etc, it can use the same.

Also, refactored Network controller to include the namespace and policy option as part of the New call. Start will not have any options as of now.

Earlier, we created the HCS document in the service layer and then passed that along to the VM Controller in Create call. This also leaks other VM options such as confidential, etc into service layer which can be encapsulated within the VM Controller.

Basically, service sends the specs to `vmController.Create`. It calls the LCOW or WCOW tagged file to generate the HCS document and sandbox options which it stores internally. Next during Start it references the same to create Confidential stack.
  For other cases such as Network controller etc, it can use the same.

Also, refactored Network controller to include the namespace and policy option as part of the New call. Start will not have any options as of now.

Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
@rawahars rawahars force-pushed the network_controller_refactor branch from bc2c504 to dc2c564 Compare April 17, 2026 06:05
@rawahars rawahars merged commit 48b310f into microsoft:main Apr 17, 2026
32 of 33 checks passed
@rawahars rawahars deleted the network_controller_refactor branch April 17, 2026 17:32
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.

[shimV2] refactor network controller [shimV2] refactor service layer + Vm controller to create HCS document in controller

2 participants