Re: Re: [PATCH v2 1/1] qga: add command 'guest-get-cpustats'

2022-07-06 Thread Marc-André Lureau
Hi On Wed, Jul 6, 2022 at 11:49 AM zhenwei pi wrote: > > > On 7/6/22 15:20, Marc-André Lureau wrote: > > Hi > > > > On Wed, Jul 6, 2022 at 7:09 AM zhenwei pi > > wrote: > > > > On 7/4/22 16:00, zhenwei pi wrote: > > > > > > > > >> +## > >

Re: Re: [PATCH v2 1/1] qga: add command 'guest-get-cpustats'

2022-07-06 Thread zhenwei pi
On 7/6/22 15:20, Marc-André Lureau wrote: Hi On Wed, Jul 6, 2022 at 7:09 AM zhenwei pi > wrote: On 7/4/22 16:00, zhenwei pi wrote: > > >>     +## >>     +# @GuestOsType: >>     +# >>     +# An enumeration of OS type >>  

Re: [PATCH v2 1/1] qga: add command 'guest-get-cpustats'

2022-07-06 Thread Marc-André Lureau
Hi On Wed, Jul 6, 2022 at 7:09 AM zhenwei pi wrote: > On 7/4/22 16:00, zhenwei pi wrote: > > > > > >> +## > >> +# @GuestOsType: > >> +# > >> +# An enumeration of OS type > >> +# > >> +# Since: 7.1 > >> +## > >> +{ 'enum': 'GuestOsType', > >> + 'data': [ 'linu

Re: [PATCH v2 1/1] qga: add command 'guest-get-cpustats'

2022-07-05 Thread zhenwei pi
On 7/4/22 16:00, zhenwei pi wrote:     +##     +# @GuestOsType:     +#     +# An enumeration of OS type     +#     +# Since: 7.1     +##     +{ 'enum': 'GuestOsType',     +  'data': [ 'linuxos', 'windowsos' ] } I would rather keep this enum specific to GuestCpuStats, "GuestLinuxCpuStatsType

Re: Re: [PATCH v2 1/1] qga: add command 'guest-get-cpustats'

2022-07-04 Thread zhenwei pi
On 7/4/22 15:28, Marc-André Lureau wrote: Hi On Mon, Jul 4, 2022 at 6:42 AM zhenwei pi > wrote: A vCPU thread always reaches 100% utilization when: - guest uses idle=poll - disable HLT vm-exit - enable MWAIT Add new guest agent command 'g

Re: [PATCH v2 1/1] qga: add command 'guest-get-cpustats'

2022-07-04 Thread Marc-André Lureau
On Mon, Jul 4, 2022 at 11:28 AM Marc-André Lureau < marcandre.lur...@gmail.com> wrote: > Hi > > On Mon, Jul 4, 2022 at 6:42 AM zhenwei pi wrote: > >> A vCPU thread always reaches 100% utilization when: >> - guest uses idle=poll >> - disable HLT vm-exit >> - enable MWAIT >> >> Add new guest agent

Re: [PATCH v2 1/1] qga: add command 'guest-get-cpustats'

2022-07-04 Thread Marc-André Lureau
Hi On Mon, Jul 4, 2022 at 6:42 AM zhenwei pi wrote: > A vCPU thread always reaches 100% utilization when: > - guest uses idle=poll > - disable HLT vm-exit > - enable MWAIT > > Add new guest agent command 'guest-get-cpustats' to get guest CPU > statistics, we can know the guest workload and how b