Skip to content

resolve VirtIO osVersion once in Get-VirtIODrivers#419

Open
mpanduru wants to merge 1 commit intocloudbase:masterfrom
mpanduru:refactor_virtio_mapping
Open

resolve VirtIO osVersion once in Get-VirtIODrivers#419
mpanduru wants to merge 1 commit intocloudbase:masterfrom
mpanduru:refactor_virtio_mapping

Conversation

@mpanduru
Copy link
Contributor

The current implementation resolves the matching osVersion inside the per-driver loop, which means we iterate over the OS mapping table for every driver even though the mapping does not depend on the driver, which creates unnecessary iterations.
This change computes the osVersion once up front and then uses that resolved version to build and validate the driver paths, keeping the same behavior.

@mpanduru mpanduru marked this pull request as draft February 13, 2026 08:32
@mpanduru mpanduru force-pushed the refactor_virtio_mapping branch from 5fc3edd to 518b500 Compare February 13, 2026 08:55
@mpanduru mpanduru marked this pull request as ready for review February 13, 2026 09:00
@mpanduru
Copy link
Contributor Author

Tested with virtio 0.1.285 and Windows Server 2022.

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