Re: [PATCH v5] kvm: make vcpu life cycle separated from kvm instance

2011-12-26 Thread Gleb Natapov
On Sat, Dec 17, 2011 at 11:19:35AM +0800, Liu Ping Fan wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Currently, vcpu can be destructed only when kvm instance destroyed. Change this to vcpu's destruction before kvm instance, so vcpu MUST and CAN be destroyed before kvm's destroy.

Re: [PATCH v5] kvm: make vcpu life cycle separated from kvm instance

2011-12-26 Thread Avi Kivity
On 12/26/2011 01:09 PM, Gleb Natapov wrote: + + idx = srcu_read_lock(kvm-srcu_vcpus); + kvm_for_each_vcpu(vcpu, kvm) { + if (!pass !firststart + vcpu != kvm-last_boosted_vcpu + kvm-last_boosted_vcpu !=

Re: [PATCH v5] kvm: make vcpu life cycle separated from kvm instance

2011-12-26 Thread Gleb Natapov
On Mon, Dec 26, 2011 at 01:17:39PM +0200, Avi Kivity wrote: On 12/26/2011 01:09 PM, Gleb Natapov wrote: + + idx = srcu_read_lock(kvm-srcu_vcpus); + kvm_for_each_vcpu(vcpu, kvm) { + if (!pass !firststart + vcpu !=

Re: [PATCH v5] kvm: make vcpu life cycle separated from kvm instance

2011-12-26 Thread Liu ping fan
On Mon, Dec 26, 2011 at 7:09 PM, Gleb Natapov g...@redhat.com wrote: On Sat, Dec 17, 2011 at 11:19:35AM +0800, Liu Ping Fan wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Currently, vcpu can be destructed only when kvm instance destroyed. Change this to vcpu's destruction before kvm

[PATCH v5] kvm: make vcpu life cycle separated from kvm instance

2011-12-16 Thread Liu Ping Fan
From: Liu Ping Fan pingf...@linux.vnet.ibm.com Currently, vcpu can be destructed only when kvm instance destroyed. Change this to vcpu's destruction before kvm instance, so vcpu MUST and CAN be destroyed before kvm's destroy. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com ---