Skip to content

fix: verify PCI device VID/DID after hotplug attach#19

Draft
brianmcgillion wants to merge 1 commit into
tiiuae:masterfrom
brianmcgillion:fix-device-recheck
Draft

fix: verify PCI device VID/DID after hotplug attach#19
brianmcgillion wants to merge 1 commit into
tiiuae:masterfrom
brianmcgillion:fix-device-recheck

Conversation

@brianmcgillion
Copy link
Copy Markdown

After device_add, query the guest PCI tree to confirm the device appeared with the expected vendor/device ID. If mismatched (e.g. VFIO FLR corrupted the config space), remove the device and raise an error so the caller can trigger VM restart recovery.

After device_add, query the guest PCI tree to confirm the device
appeared with the expected vendor/device ID. If mismatched (e.g.
VFIO FLR corrupted the config space), remove the device and raise
an error so the caller can trigger VM restart recovery.

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
@brianmcgillion brianmcgillion marked this pull request as draft February 15, 2026 07:30
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.

1 participant