From: Andrea Bolognani <abologna@redhat.com>
To: Peter Xu <peterx@redhat.com>, qemu-devel@nongnu.org
Cc: wei@redhat.com, peter.maydell@linaro.org, drjones@redhat.com,
armbru@redhat.com, mdroth@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] [PATCH 1/3] arm: gic: add GICType
Date: Tue, 01 Mar 2016 15:20:59 +0100 [thread overview]
Message-ID: <1456842059.3566.11.camel@redhat.com> (raw)
In-Reply-To: <1456224728-28163-2-git-send-email-peterx@redhat.com>
On Tue, 2016-02-23 at 18:52 +0800, Peter Xu wrote:
> A new enum type is added to define ARM GIC types.
>
> Signed-off-by: Peter Xu <peterx@redhat.com>
> ---
> qapi-schema.json | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/qapi-schema.json b/qapi-schema.json
> index 8d04897..81654bd 100644
> --- a/qapi-schema.json
> +++ b/qapi-schema.json
> @@ -4083,3 +4083,20 @@
> ##
> { 'enum': 'ReplayMode',
> 'data': [ 'none', 'record', 'play' ] }
> +
> +##
> +# @GICType:
> +#
> +# An enumeration of GIC types
> +#
> +# @gicv2: GICv2 support without kernel irqchip
> +#
> +# @gicv3: GICv3 support without kernel irqchip
> +#
> +# @gicv2-kvm: GICv3 support with kernel irqchip
> +#
> +# @gicv3-kvm: GICv3 support with kernel irqchip
> +#
> +# Since: 2.6
> +##
> +{ 'enum': 'GICType', 'data': [ 'gicv2', 'gicv3', 'gicv2-kvm', 'gicv3-kvm' ] }
Wouldn't this conflate the use of accel= and kernel_irqchip= options?
IIUC, depending on the hardware, you might find yourself in the
following situation:
accel=tcg,gic-version=3 unavailable
accel=kvm,kernel_irqchip=off,gic-version=3 unavailable
accel=kvm,gic-version=3 available
so I'd expect the output to be something like
[ "v2": { "tcg": true,
"kvm-without-kernel-irqchip": true,
"kvm": true },
"v3": { "tcg": false,
"kvm-without-kernel-irqchip": false,
"kvm": true } ]
Since libvirt currently doesn't have support for the
kernel_irqchip= option, it would only take the "tcg" and "kvm"
values into account; on the other hand, if at some point
libvirt will grow support for that option it would be able to
retrieve all the required information.
Cheers.
--
Andrea Bolognani
Software Engineer - Virtualization Team
next prev parent reply other threads:[~2016-03-01 14:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-23 10:52 [Qemu-devel] [PATCH 0/3] ARM: add query-gic-capability SMP command Peter Xu
2016-02-23 10:52 ` [Qemu-devel] [PATCH 1/3] arm: gic: add GICType Peter Xu
2016-03-01 14:20 ` Andrea Bolognani [this message]
2016-03-02 3:34 ` Peter Xu
2016-03-02 7:15 ` Peter Xu
2016-03-02 9:47 ` Markus Armbruster
2016-03-02 10:55 ` Peter Xu
2016-03-02 13:59 ` Markus Armbruster
2016-03-03 4:27 ` Peter Xu
2016-03-03 6:34 ` Markus Armbruster
2016-03-03 6:58 ` Peter Xu
2016-03-01 16:46 ` Eric Blake
2016-03-02 4:55 ` Peter Xu
2016-02-23 10:52 ` [Qemu-devel] [PATCH 2/3] arm: gic: add "query-gic-capability" interface Peter Xu
2016-02-23 10:52 ` [Qemu-devel] [PATCH 3/3] arm: implement query-gic-capability Peter Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1456842059.3566.11.camel@redhat.com \
--to=abologna@redhat.com \
--cc=armbru@redhat.com \
--cc=drjones@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=peter.maydell@linaro.org \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=wei@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).