Skip to content

passthrough: add generic device pool identifiers#4369

Merged
LiliDeng merged 1 commit intomainfrom
vyadav_hyperv_pass1
Mar 23, 2026
Merged

passthrough: add generic device pool identifiers#4369
LiliDeng merged 1 commit intomainfrom
vyadav_hyperv_pass1

Conversation

@vyadavmsft
Copy link
Copy Markdown
Collaborator

@vyadavmsft vyadavmsft commented Mar 20, 2026

Description

Extend host device pool schema to accept Hyper-V location_path identifiers alongside vendor/device IDs and pci_bdf lists.

Refactor BaseDevicePool passthrough pool configuration so identifier-based inputs are normalized and validated in one place, and ignore blank string entries while parsing configured string lists.

This commit adds the generic plumbing only.

Related Issue

Type of Change

  • Bug fix
  • [* ] New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • [ *] Description is filled in above
  • [ *] No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Key Test Cases:

verify_device_passthrough_on_guest

Impacted LISA Features:

Network Passthrough

Tested Azure Marketplace Images:

Dom0 Local HYper-V VHD

Test Results

| Image | VM Size | Result |
|--Dom0----|-Local VM----|--------|
| | | PASSED |

Copilot AI review requested due to automatic review settings March 20, 2026 18:23
Copy link
Copy Markdown
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

Extends the host device pool schema and passthrough pool configuration to support Hyper-V location_path identifiers in addition to vendor/device IDs and PCI BDF lists, centralizing parsing/validation and filtering blank entries.

Changes:

  • Added a DeviceLocationPathIdentifier schema and expanded HostDevicePoolSchema.devices to accept it.
  • Refactored passthrough pool configuration to normalize/validate identifier inputs in one place.
  • Added normalization logic to strip/ignore blank string entries in configured string lists.

Reviewed changes

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

File Description
lisa/sut_orchestrator/util/schema.py Adds a new location-path identifier dataclass and extends the device pool schema union to include it.
lisa/sut_orchestrator/util/device_pool.py Refactors passthrough configuration to route identifier types through centralized normalization/validation, and adds location-path plumbing.

Comment thread lisa/sut_orchestrator/util/device_pool.py
Comment thread lisa/sut_orchestrator/util/device_pool.py
@vyadavmsft vyadavmsft force-pushed the vyadav_hyperv_pass1 branch from 2f63ea7 to ea5126c Compare March 20, 2026 20:37
Copilot AI review requested due to automatic review settings March 20, 2026 20:48
@vyadavmsft vyadavmsft force-pushed the vyadav_hyperv_pass1 branch from ea5126c to 740005d Compare March 20, 2026 20:48
Copy link
Copy Markdown
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread lisa/sut_orchestrator/util/device_pool.py Outdated
@vyadavmsft vyadavmsft force-pushed the vyadav_hyperv_pass1 branch from 740005d to d517dd1 Compare March 20, 2026 21:04
Extend host device pool schema to accept Hyper-V location_path identifiers
alongside vendor/device IDs and pci_bdf lists.

Refactor BaseDevicePool passthrough pool configuration so identifier-based
inputs are normalized and validated in one place, and ignore blank string
entries while parsing configured string lists.

This commit adds the generic plumbing only. Platform-specific Hyper-V and
libvirt consumers are added in later commits.
Copilot AI review requested due to automatic review settings March 20, 2026 21:15
@vyadavmsft vyadavmsft force-pushed the vyadav_hyperv_pass1 branch from d517dd1 to bbfff5f Compare March 20, 2026 21:15
Copy link
Copy Markdown
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread lisa/sut_orchestrator/util/device_pool.py
@LiliDeng LiliDeng merged commit 8dc296f into main Mar 23, 2026
62 checks passed
@LiliDeng LiliDeng deleted the vyadav_hyperv_pass1 branch March 23, 2026 23:35
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.

3 participants