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 wrote: > On Sat, Dec 17, 2011 at 11:19:35AM +0800, Liu Ping Fan wrote: >> From: Liu Ping Fan >> >> 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

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 && > > > + vc

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-

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 > > 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 Pin

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

2011-12-16 Thread Liu Ping Fan
From: Liu Ping Fan 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 --- arch/x86/kvm/i8254.c | 10 +++-- arch/x86/kvm/i8259.c