https://bugs.winehq.org/show_bug.cgi?id=47800
--- Comment #1 from François Gouget fgouget@codeweavers.com --- This counter is actually a really annoying when setting up VMs: forget to reset it before taking a snapshot and LibvirtTool will rightly complain that it is set wrong.
Maybe that could be avoided by having LibvirtTool match changes in this counter to the reboots it triggered and reset it when appropriate. Or maybe another mechanism should be used.
One thing that often prevents detecting that the VM rebooted is Windows' default 30 second boot delay which causes the test to time out and give up before it had time to reconnect to the TestAgent server. So it would help if LibvirtTool could automatically reduce this delay to ~2 seconds when setting up "-live" snapshots.
One more thing is that it's possible to get information about the reason for the reboot from the event log. If there was a BSOD one can even get some information about it... if there's at least a small pagefile set up.
Removing "options kvm ignore_msrs=1" from /etc/modprobe.d and running ntdll:exception on a Windows 10 VM is a nice way to produce BSODs to test this.