Forum Discussion
Hyper-V recovery: is guest execution-state rollback excluded when checkpoints are disabled?
Disabling checkpoints does not, by itself, establish a formal guarantee against execution-state rollback.
The important distinctions are:
- VMMS failure: Service recovery does not inherently mean restoring an earlier guest memory state.
- vmwp.exe failure: The VM worker process manages VM execution. Its failure may result in a VM crash or restart rather than transparent continuation.
- Host failure or reboot: Recovery behavior depends on the VM's saved-state and startup configuration.
- Checkpoints disabled: This prevents checkpoint-based rollback, but does not establish a universal guarantee covering every recovery mechanism.
My recommendation for your security architecture:
1. Do not treat disabling checkpoints as a security guarantee against replay.
2. Maintain operation authorization and transaction state outside the VM.
3. Use externally maintained monotonic counters, unique operation IDs and durable transaction records.
4. Require external authorization before potentially replayable operations are executed again.
The key conclusion: If preventing replay is a security requirement, design for replay resistance independently of Hyper-V's recovery behavior.
Microsoft would need to provide an explicit, version-specific engineering guarantee before Hyper-V could safely be treated as enforcing this property.