kvm: always start in paused state
authorGuido Trotter <ultrotter@google.com>
Mon, 9 Jan 2012 16:57:41 +0000 (16:57 +0000)
committerGuido Trotter <ultrotter@google.com>
Fri, 20 Jan 2012 09:44:10 +0000 (09:44 +0000)
commit945a7e676e92fcc80d1eb7b5b04fc10afc8ece1c
treec2f9e9705bd94246905e0036cda07d96a25324a8
parent59d81cb3cec586db8fc933357f099f46ddafb447
kvm: always start in paused state

Currently kvm starts in a frozen state if cpu pinning is set.
This is useful for other purposes as well (eg. ballooning before the
instance uses the memory), so we move the functionality out of the cpu
pinning code.

Note that before the "continue" command was executed in a finally after
trying to set the cpu pinning. This didn't help if anything else in the
function failed before that, though. As such we just move it out, as
anyway a failure above will cause an exception, so the user will know
their start command hasn't succeeded anyway.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/hypervisor/hv_kvm.py