Re: [PATCH V2] hax: Dynamic allocate vcpu state structure

2020-05-21 Thread Paolo Bonzini
On 09/05/20 05:59, Colin Xu wrote: > From: WangBowen > > Dynamic allocating vcpu state structure according to smp value to be > more precise and safe. Previously it will alloccate array of fixed size > HAX_MAX_VCPU. > > This is achieved by using g_new0 to dynamic allocate the array. The > alloca

Re: [PATCH V2] hax: Dynamic allocate vcpu state structure

2020-05-08 Thread Colin Xu
Bowen is no longer working on the project so continue the revising. Sorry for the delayed reply. On 2020-05-09 11:59, Colin Xu wrote: From: WangBowen Dynamic allocating vcpu state structure according to smp value to be more precise and safe. Previously it will alloccate array of fixed size HA

[PATCH V2] hax: Dynamic allocate vcpu state structure

2020-05-08 Thread Colin Xu
From: WangBowen Dynamic allocating vcpu state structure according to smp value to be more precise and safe. Previously it will alloccate array of fixed size HAX_MAX_VCPU. This is achieved by using g_new0 to dynamic allocate the array. The allocated size is obtained from smp.max_cpus in MachineSt