libvirt builds differently depending on presence of libssh2, and the build can fail if libssh2 is not found at compile time.
bitbake libvirt -c cleansstate bitbake libvirt
See linked issue.