Skip to content

Add Go wrappers for Get/SetVirtualDiskInformation win32 APIs.#334

Merged
ambarve merged 2 commits into
mainfrom
get_set_vhd_id
Oct 27, 2025
Merged

Add Go wrappers for Get/SetVirtualDiskInformation win32 APIs.#334
ambarve merged 2 commits into
mainfrom
get_set_vhd_id

Conversation

@ambarve

@ambarve ambarve commented Oct 16, 2025

Copy link
Copy Markdown
Contributor

SetVirtualDiskInformation API is required for running confidential windows containers. The VHDs used for starting confidential pods/UVMs need to have a specific disk identifier. These newly added APIs will be used when preparing the VHDs for confidential pods.

However, some of the standard library methods used here need Go 1.23, so the first commit updates the repo to use Go 1.23 (while fixing linter errors) and then the second commit adds the required VHD APIs.

@ambarve
ambarve requested a review from a team as a code owner October 16, 2025 17:11
@ambarve
ambarve force-pushed the get_set_vhd_id branch 7 times, most recently from bc1a442 to 76e6a04 Compare October 21, 2025 15:29
Some new upcoming changes require us to use Go 1.23. However, if we switch to Go 1.23 some
new linter errors are showing up. This commit fixes most of the errors and adds an
exclusion for integer overflow errors.

Signed-off-by: Amit <[email protected]>

@helsaawy helsaawy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

VHD issue in comment, but LGTM otherwise

Comment thread vhd/vhd.go Outdated
SetVirtualDiskInformation API is required for running confidential windows containers. The
VHDs used for starting confidential pods/UVMs need to have a specific disk
identifier. These newly added APIs will be used when preparing the VHDs for confidential
pods.

Signed-off-by: Amit <[email protected]>
@ambarve
ambarve merged commit ad3df93 into main Oct 27, 2025
15 of 17 checks passed
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.

4 participants