[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 2/5] vcpu: track hvm vcpu number on the system



On Thu, May 11, 2017 at 12:37:37PM +0100, Wei Liu wrote:
>On Thu, May 11, 2017 at 12:35:11PM +0100, Wei Liu wrote:
>> On Thu, May 11, 2017 at 02:04:09PM +0800, Chao Gao wrote:
>> > This number is used to calculate how many hvm vcpu on a pcpu on average.
>> > 
>> > Signed-off-by: Chao Gao <chao.gao@xxxxxxxxx>
>> > ---
>> >  xen/common/domain.c     | 8 ++++++++
>> >  xen/include/xen/sched.h | 2 ++
>> >  2 files changed, 10 insertions(+)
>> > 
>> > diff --git a/xen/common/domain.c b/xen/common/domain.c
>> > index b22aacc..d433d9e 100644
>> > --- a/xen/common/domain.c
>> > +++ b/xen/common/domain.c
>> > @@ -71,6 +71,9 @@ struct vcpu *idle_vcpu[NR_CPUS] __read_mostly;
>> >  
>> >  vcpu_info_t dummy_vcpu_info;
>> >  
>> > +/* how many hvm vcpu on this system? */
>> > +atomic_t num_hvm_vcpus;
>> > +
>> 
>> This is x86 specific and should go to x86/domain.c
>
>... as with all the code that manipulates it. I'm sure you can find the
>appropriate places like arch_initialise/destroy_vcpu.

Agree. I could make things better if thinking more about it.

Thanks
Chao

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.