KVM: Check instances for actual liveness
KVM: Check instances for actual liveness

Currently if we find a live process with the pid we saved we assume kvm
is alive. What could happen, though, is that the pidfile has been
reused.

In order to avoid that we change the check to make sure, everywhere,
that the process we see is our actual kvm process. In order to do so we
open its cmdline, and check that it contains the correct instance name
in the -name argument passed to kvm.

Signed-off-by: Guido Trotter <f62ca4d5358bdaeef0e50e57f9f7e231de63727e@google.com>
Reviewed-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>

mbakke/ganeti,andir/ganeti,mbakke/ganeti,dimara/ganeti,onponomarev/ganeti,andir/ganeti,andir/ganeti,ganeti-github-testing/ganeti-test-1,apyrgio/ganeti,yiannist/ganeti,dimara/ganeti,apyrgio/snf-ganeti,ganeti/ganeti,grnet/snf-ganeti,apyrgio/snf-ganeti,ganeti-github-testing/ganeti-test-1,mbakke/ganeti,onponomarev/ganeti,leshchevds/ganeti,ganeti/ganeti,bitemyapp/ganeti,leshchevds/ganeti,bitemyapp/ganeti,apyrgio/ganeti,yiannist/ganeti,grnet/snf-ganeti,ganeti/ganeti,yiannist/ganeti,leshchevds/ganeti