Re: [RFC PATCH v2] x86/cpu: initialize the CPU concurrently

2020-12-31 Thread Zhenyu Ye
Hi Eduardo, On 2020/12/25 2:06, Eduardo Habkost wrote: >> >> The most time-consuming operation in haxm is ioctl(HAX_VM_IOCTL_VCPU_CREATE). >> Saddly this can not be split. >> >> Even if we fix the problem in haxm, other accelerators may also have >> this problem. So I think if we can make the x86

Re: [RFC PATCH v2] x86/cpu: initialize the CPU concurrently

2020-12-24 Thread Eduardo Habkost
On Thu, Dec 24, 2020 at 09:41:10PM +0800, Zhenyu Ye wrote: > Hi Eduardo, > > Sorry for the delay. > > On 2020/12/22 5:36, Eduardo Habkost wrote: > > On Mon, Dec 21, 2020 at 07:36:18PM +0800, Zhenyu Ye wrote: > >> Providing a optional mechanism to wait for all VCPU threads be > >> created out of q

Re: [RFC PATCH v2] x86/cpu: initialize the CPU concurrently

2020-12-24 Thread Zhenyu Ye
Hi Eduardo, Sorry for the delay. On 2020/12/22 5:36, Eduardo Habkost wrote: > On Mon, Dec 21, 2020 at 07:36:18PM +0800, Zhenyu Ye wrote: >> Providing a optional mechanism to wait for all VCPU threads be >> created out of qemu_init_vcpu(), then we can initialize the cpu >> concurrently on the x86

Re: [RFC PATCH v2] x86/cpu: initialize the CPU concurrently

2020-12-21 Thread Eduardo Habkost
On Mon, Dec 21, 2020 at 07:36:18PM +0800, Zhenyu Ye wrote: > Providing a optional mechanism to wait for all VCPU threads be > created out of qemu_init_vcpu(), then we can initialize the cpu > concurrently on the x86 architecture. > > This reduces the time of creating virtual machines. For example,

[RFC PATCH v2] x86/cpu: initialize the CPU concurrently

2020-12-21 Thread Zhenyu Ye
Providing a optional mechanism to wait for all VCPU threads be created out of qemu_init_vcpu(), then we can initialize the cpu concurrently on the x86 architecture. This reduces the time of creating virtual machines. For example, when the haxm is used as the accelerator, cpus_accel->create_vcpu_th