| Previous | Next |
| ERROR_HV_INVALID_SYNIC_STATE | ERROR_HV_INVALID_PROXIMITY_DOMAIN_INFO |
ERROR_HV_OBJECT_IN_USE
Hypervisor objects have explicit attachment and lifetime rules
ERROR_HV_OBJECT_IN_USE means an object or value is already committed to a purpose that conflicts with the requested operation. Examples include a state page that remains mapped, a device still attached to a domain, a VP resource used by another operation, or a partition object retained while finalization is attempted.
Find the owning operation instead of immediately recreating the VM. Track creation, attachment, mapping, and release as paired events, and include generation numbers in asynchronous callbacks. If teardown is underway, wait for the documented completion point before deleting the dependent object; clearing only the application handle does not prove the hypervisor reference has disappeared.
Reference and ownership evidence
- Object type, identifier, and operation attempting to change it.
- Outstanding mappings, device attachments, callbacks, or async requests.
- Thread or component that acquired the object and expected release event.
- Whether the handle belongs to an earlier partition generation.
References
- Microsoft TLFS: finalization deletes dependent partition objects
- Microsoft TLFS: mapping and unmapping VP state pages
- Linux kernel: explicit sharing and revocation of Hyper-V pages
Looking for a different code? Search another status or error code.