[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback |
Date: |
Tue, 10 Jun 2014 09:13:18 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 06/10/2014 07:39 AM, Luiz Capitulino wrote:
> On Wed, 4 Jun 2014 18:08:47 +1000
> Alexey Kardashevskiy <address@hidden> wrote:
>
>> This introduces an NMI (non maskable interrupt) callback per CPU class
>> which QMP's "nmi" command may use to issue NMI on a CPU.
>>
>> This adds support for it in qmp_inject_nmi(). Since no architecture
>> supports it at the moment, there is no change in behaviour.
>>
>> This changes inject-nmi command description for HMP and QMP.
>>
>> Signed-off-by: Alexey Kardashevskiy <address@hidden>
>> +++ b/qapi-schema.json
>> @@ -1748,13 +1748,11 @@
>> ##
>> # @inject-nmi:
>> #
>> -# Injects an Non-Maskable Interrupt into all guest's VCPUs.
>> +# Injects an Non-Maskable Interrupt into the given guest's VCPU.
>
> QMP doesn't have the concept of "current monitored CPU" you talk in the
> intro email. In QMP you have to specify the CPU. You have to choices:
>
> - Add a new command that takes a CPU parameter (seems the best to me, as
> people were asking for a different command anyways)
>
> - Add an optional parameter to inject-nmi. When the CPU parameter is
> not specified, the command sends the NMI to all CPUs
>
> Eric, any thoughts?
How would libvirt know whether the optional parameter is supported,
short of trying it and getting a failure on older qemu that lacks it?
At this point, since we still don't have global qapi introspection, the
addition of a new command is nicer than the addition of an optional
parameter.
But I definitely agree that we have a discrepancy between HMP being able
to specify a current CPU, vs. QMP being unable to direct which CPU gets
the interrupt.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback, (continued)
- Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback, Alexey Kardashevskiy, 2014/06/11
- Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback, Alexander Graf, 2014/06/11
- Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback, Alexey Kardashevskiy, 2014/06/11
- Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback, Paolo Bonzini, 2014/06/11
- Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback, Cornelia Huck, 2014/06/11
- Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback, Cornelia Huck, 2014/06/11
- Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback,
Eric Blake <=
- Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback, Alexey Kardashevskiy, 2014/06/10
- Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback, Luiz Capitulino, 2014/06/11
[Qemu-devel] [PATCH v3 3/4] target-i386: Migrate to new nmi() CPU callback, Alexey Kardashevskiy, 2014/06/04
[Qemu-devel] [PATCH v3 2/4] target-s390x: Migrate to new nmi() CPU callback, Alexey Kardashevskiy, 2014/06/04
Re: [Qemu-devel] [PATCH v3 0/4] cpus: Add generic NMI support, Paolo Bonzini, 2014/06/04
Re: [Qemu-devel] [PATCH v3 0/4] cpus: Add generic NMI support, Peter Maydell, 2014/06/04