qemu-devel
[Top][All Lists]
Advanced

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

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


From: zhenwei pi
Subject: Re: [PATCH v2 1/1] qga: add command 'guest-get-cpustats'
Date: Wed, 6 Jul 2022 11:04:56 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

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"?


Hi,

'GuestOsType' may be re-used in the future, not only for the CPU statistics case.

I would also drop the "os" suffix

I'm afraid we can not drop "os" suffix, build this without "os" suffix:
qga/qga-qapi-types.h:948:28: error: expected member name or ';' after declaration specifiers
         GuestLinuxCpuStats linux;
         ~~~~~~~~~~~~~~~~~~ ^
<built-in>:336:15: note: expanded from here
#define linux 1


Hi, Marc

Could you please give any hint about this issue?

    +
    +



Looks good to me otherwise.
thanks

--
Marc-André Lureau


--
zhenwei pi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]