qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Fedin <p.fedin@samsung.com>
To: 'Peter Maydell' <peter.maydell@linaro.org>,
	"'Daniel P. Berrange'" <berrange@redhat.com>
Cc: 'Shlomo Pongratz' <shlomo.pongratz@huawei.com>,
	'QEMU Developers' <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2] Add virt-v3 machine that uses GIC-500
Date: Tue, 12 May 2015 14:15:46 +0300	[thread overview]
Message-ID: <039401d08ca4$ff1cd830$fd568890$@samsung.com> (raw)
In-Reply-To: <CAFEAcA_Hi7H1U0W287JCoZRsB9fV4x9rAm2gYCGyzGsQsOtE9Q@mail.gmail.com>

 Hello!

> We are not. Support for GICv2 vs v3 should be dealt with
> by suitable machine properties

 I don't remember whether i clearly wrote about it... First i added a property, like -machine virt,gicv3=on. But then i decided to stick back to different machine name because libvirt does not have mechanism for passing machine options.

> (and by figuring out how
> we handle probing for which of the two the host kernel
> can provide us).

 This is tricky. I thought about it.
 Kernel offers us only KVM_CAP_IRQCHIP Boolean. But it does not tell us which irqchip. Possible variants are:
a) Host with GICv2 - this can only be v2.
b) Host with GICv3 with backwards compatibility option - this can be both
b) Host with GICv3 without compatibility option - this can only be v3.
 Perhaps we could do a probe in  kvm_arch_irqchip_create(), however i'm not sure what happens in the kernel when this is called. This call actually instantiates the device, but drops its fd. I suggest, the device is still created, and next attempt to do it will just return the same fd. And i don't know what happens if we create both GICs (i cannot test because i don't have machine capable of doing it).
 OTOH, if we don't have in-kernel acceleration, perhaps the good idea is stick to what the user wants, and use emulation. Yes, i know about problems with generic timer in this case, but this if different issue which can also be fixed.

Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia

  reply	other threads:[~2015-05-12 11:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-08 13:09 [Qemu-devel] [PATCH v2] Add virt-v3 machine that uses GIC-500 Pavel Fedin
2015-05-11 11:30 ` Shlomo Pongratz
2015-05-12  9:05   ` Pavel Fedin
2015-05-12 11:29     ` Shlomo Pongratz
2015-05-12 12:33       ` Pavel Fedin
2015-05-13 10:34         ` Shlomo Pongratz
2015-05-13 13:57           ` Pavel Fedin
2015-05-14 12:01             ` Shlomo Pongratz
2015-05-14 15:27               ` Pavel Fedin
2015-05-12  9:11   ` Pavel Fedin
2015-05-12  9:20 ` Daniel P. Berrange
2015-05-12  9:32   ` Pavel Fedin
2015-05-12  9:56   ` Peter Maydell
2015-05-12 11:15     ` Pavel Fedin [this message]
2015-05-12 11:20       ` Daniel P. Berrange

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='039401d08ca4$ff1cd830$fd568890$@samsung.com' \
    --to=p.fedin@samsung.com \
    --cc=berrange@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=shlomo.pongratz@huawei.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).