Fix interaction between CPU pinning and KVM migration
authorAndrea Spadaccini <spadaccio@google.com>
Wed, 21 Sep 2011 13:38:57 +0000 (14:38 +0100)
committerAndrea Spadaccini <spadaccio@google.com>
Fri, 23 Sep 2011 08:57:03 +0000 (09:57 +0100)
commit1d8a78121529f455acdd08cfebb7cde1292a290b
tree592ef29f81ace479e6067fe16f8d936916a4d442
parent1c7c4578ec021ec1bbf4ea4efe5be6a7ed5f0cde
Fix interaction between CPU pinning and KVM migration

CPU pinning requires the KVM hypervisor to start in the paused state, in
order to retrieve information, and immediately unpauses it.

This does not play well with live migration, as the unpausing was done
before the migration started and so the receiving kvm process left the
migrated instance in the stopped status.

This patch fixes this behavior, by not launching the KVM process in
stopped state while on the receiving side of a migration.

Also, the stopping is now done outside _ExecuteCpuAffinity.

Signed-off-by: Andrea Spadaccini <spadaccio@google.com>
Reviewed-by: Tsachy Shacham <tsachy@google.com>
lib/hypervisor/hv_kvm.py