qemu-arm
[Top][All Lists]
Advanced

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

Re: [PATCH 1/6] accel: Introduce 'query-accels' QMP command


From: Thomas Huth
Subject: Re: [PATCH 1/6] accel: Introduce 'query-accels' QMP command
Date: Fri, 12 Mar 2021 09:11:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0

On 12/03/2021 08.42, Marc-André Lureau wrote:


On Fri, Mar 12, 2021 at 3:14 AM Philippe Mathieu-Daudé <philmd@redhat.com <mailto:philmd@redhat.com>> wrote:

[...]
    +##
    +# @AcceleratorInfo:
    +#
    +# Accelerator information.
    +#
    +# @name: The accelerator name.
    +#
    +# Since: 6.0
    +##
    +{ 'union': 'AcceleratorInfo',
    +  'base': {'name': 'Accelerator'},
    +  'discriminator': 'name',
    +  'data': { } }

    +


Making room for future details, why not.

I think we definitely need the additional data section here: For KVM on POWER, it would be good to know whether it's KVM-HV or KVM-PR, for KVM on MIPS it would be good to know whether it's KVM_VM_MIPS_VZ or KVM_VM_MIPS_TE, for KVM on x86 whether it's the AMD flavor or Intel, ...

    +##
    +# @query-accels:
    +#
    +# Get a list of AcceleratorInfo for all built-in accelerators.
    +#
    +# Returns: a list of @AcceleratorInfo describing each accelerator.
    +#
    +# Since: 6.0
    +#
    +# Example:
    +#
    +# -> { "execute": "query-accels" }
    +# <- { "return": [
    +#        {
    +#            "type": "qtest"
    +#        },
    +#        {
    +#            "type": "kvm"
    +#        }
    +#    ] }
    +#
    +##
    +{ 'command': 'query-accels',
    +  'returns': ['AcceleratorInfo'] }


That's nice, but how do you know which accels are actually enabled?

I guess we need two commands in the end, one for querying which accelerators are available, and one for querying the data from the currently active accelerator...?

 Thomas




reply via email to

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