qemu: save domain state to XML after reboot
qemu: save domain state to XML after reboot

Currently qemuDomainReboot() does reboot in two phases:
qemuMonitorSystemPowerdown() and qemuProcessFakeReboot().

qemuMonitorSystemPowerdown() shutdowns the domain and saves domain
state/reason as VIR_DOMAIN_SHUTDOWN_UNKNOWN.

qemuProcessFakeReboot() sets domain state/reason to
VIR_DOMAIN_RESUMED_UNPAUSED but does not save domain state changes.

Subsequent restart of libvirtd leads to restoring domain state/reason to
saved that is VIR_DOMAIN_SHUTDOWN_UNKNOWN and to automatic shutdown of
the domain. This commit adds virDomainSaveStatus() into
qemuProcessFakeReboot() to avoid unexpected shutdowns.

datto/libvirt,fabianfreyer/libvirt,zippy2/libvirt,andreabolognani/libvirt,elmarco/libvirt,jardasgit/libvirt,eskultety/libvirt,zhlcindy/libvirt-1.1.4-maintain,libvirt/libvirt,datto/libvirt,elmarco/libvirt,crobinso/libvirt,zippy2/libvirt,datto/libvirt,olafhering/libvirt,elmarco/libvirt,taget/libvirt,andreabolognani/libvirt,eskultety/libvirt,cbosdo/libvirt,agx/libvirt,fabianfreyer/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,eskultety/libvirt,andreabolognani/libvirt,agx/libvirt,agx/libvirt,cbosdo/libvirt,agx/libvirt,cbosdo/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,datto/libvirt,VenkatDatta/libvirt,libvirt/libvirt,nertpinx/libvirt,zhlcindy/libvirt-1.1.4-maintain,rlaager/libvirt,zippy2/libvirt,taget/libvirt,nertpinx/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,taget/libvirt,shugaoye/libvirt,cbosdo/libvirt,nertpinx/libvirt,jfehlig/libvirt,jfehlig/libvirt,andreabolognani/libvirt,elmarco/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,cbosdo/libvirt,shugaoye/libvirt,agx/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,shugaoye/libvirt,libvirt/libvirt,libvirt/libvirt,olafhering/libvirt,datto/libvirt,eskultety/libvirt,jfehlig/libvirt,crobinso/libvirt,rlaager/libvirt,taget/libvirt,zippy2/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,crobinso/libvirt,olafhering/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,zhlcindy/libvirt-1.1.4-maintain,rlaager/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,taget/libvirt,olafhering/libvirt,jardasgit/libvirt,rlaager/libvirt,jardasgit/libvirt,eskultety/libvirt,rlaager/libvirt