Re: [Qemu-devel] [PATCH v2 1/9] cpus: Reclaim vCPU objects

2015-11-20 Thread Matthew Rosato
On 11/19/2015 09:33 PM, Bharata B Rao wrote: > On Thu, Nov 19, 2015 at 10:10:06AM -0500, Matthew Rosato 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] [PATCH v2 1/9] cpus: Reclaim vCPU objects

2015-11-19 Thread Bharata B Rao
On Thu, Nov 19, 2015 at 10:10:06AM -0500, Matthew Rosato 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 appendi

[Qemu-devel] [PATCH v2 1/9] cpus: Reclaim vCPU objects

2015-11-19 Thread Matthew Rosato
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