Patches for new KVM template sync system.