Re: [Qemu-devel] [RFC PATCH v1 03/10] cpu: Reclaim vCPU objects

2016-03-08 Thread Bharata B Rao
On Mon, Mar 07, 2016 at 08:05:58PM +0100, Thomas Huth wrote: > On 04.03.2016 07:54, Bharata B Rao wrote: > > From: Gu Zheng > > > > In order to deal well with the kvm vcpus (which can not be removed without > > any > > protection), we do not close KVM vcpu fd, just record and mark it as stopped

Re: [Qemu-devel] [RFC PATCH v1 03/10] cpu: Reclaim vCPU objects

2016-03-07 Thread Thomas Huth
On 04.03.2016 07:54, Bharata B Rao wrote: > From: Gu Zheng > > In order to deal well with the kvm vcpus (which can not be removed without any > protection), we do not close KVM vcpu fd, just record and mark it as stopped > into a list, so that we can reuse it for the appending cpu hot-add request

[Qemu-devel] [RFC PATCH v1 03/10] cpu: Reclaim vCPU objects

2016-03-03 Thread Bharata B Rao
From: Gu Zheng In order to deal well with the kvm vcpus (which can not be removed without any protection), we do not close KVM vcpu fd, just record and mark it as stopped into a list, so that we can reuse it for the appending cpu hot-add request if possible. It is also the approach that kvm guys