| Previous | Next |
| ERROR_HV_INVALID_DEVICE_ID | ERROR_HV_PAGE_REQUEST_INVALID |
ERROR_HV_INVALID_DEVICE_STATE
Device assignment has a lifecycle independent of the VM power state
ERROR_HV_INVALID_DEVICE_STATE means Hyper-V recognizes the device but rejects an operation in its current lifecycle phase. A pass-through or virtual PCI device may be attached to a domain, enabled for a partition, processing DMA, quiescing, resetting, or awaiting removal; each phase permits different operations.
Log the last successful device transition and pending requests. Stop guest use and DMA before remapping or detaching, and wait for completion rather than assuming a stopped application means the hardware is idle. Also distinguish a device-state failure from an invalid partition state: the VM can remain healthy while one assigned device is mid-transition.
Device lifecycle data to collect
- Attach, start, quiesce, reset, and detach milestones.
- Outstanding DMA, interrupts, and guest page requests.
- Current device domain and target partition.
- Hot-plug, save, or host power event overlapping the operation.
References
- Microsoft: Hyper-V device-state status definition
- Linux kernel: Hyper-V pass-through device operation
- Microsoft: IOMMU mappings used for isolated devices
Looking for a different code? Search another status or error code.