Re: [Qemu-devel] [PATCH 1/2] kvm: make vcpu life cycle separated from kvm instance

2011-11-27 Thread Avi Kivity
On 11/25/2011 04:35 AM, Liu Ping Fan wrote: > From: Liu Ping Fan > > Currently, vcpu can be destructed only when kvm instance destroyed. > Change this to vcpu as a refer to kvm, and then vcpu MUST and CAN be > destroyed before kvm's destroy. Qemu will take advantage of this to > exit the vcpu thre

[Qemu-devel] [PATCH 1/2] kvm: make vcpu life cycle separated from kvm instance

2011-11-24 Thread Liu Ping Fan
From: Liu Ping Fan Currently, vcpu can be destructed only when kvm instance destroyed. Change this to vcpu as a refer to kvm, and then vcpu MUST and CAN be destroyed before kvm's destroy. Qemu will take advantage of this to exit the vcpu thread if the thread is no longer in use by guest. Signed-