From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
"QEMU Developers" <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
"KONRAD Frederic" <frederic.konrad@adacore.com>,
"Alistair Francis" <alistair@alistair23.me>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>,
"Francisco Iglesias" <frasse.iglesias@gmail.com>,
figlesia@xilinx.com,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Sai Pavan Boddu" <sai.pavan.boddu@xilinx.com>
Subject: Re: [Qemu-devel] [PATCH v3 3/4] hw/arm: versal: Add a model of Xilinx Versal SoC
Date: Mon, 22 Oct 2018 13:31:55 +0200 [thread overview]
Message-ID: <20181022113155.GH4229@toto> (raw)
In-Reply-To: <CAFEAcA_URiHwcu1k-MYGpw704y_t4RuUFHGrpa4XA9GTKBb8aA@mail.gmail.com>
On Sun, Oct 21, 2018 at 10:25:28PM +0100, Peter Maydell wrote:
> On 21 October 2018 at 20:24, Edgar E. Iglesias
> <edgar.iglesias@xilinx.com> wrote:
> > On Fri, Oct 19, 2018 at 03:18:24PM +0100, Peter Maydell wrote:
> >> On 17 October 2018 at 22:39, Edgar E. Iglesias <edgar.iglesias@gmail.com> wrote:
> >> > From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
> >> >
> >> > Add a model of Xilinx Versal SoC.
> >> >
> >> > Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
> >> > ---
> >> > default-configs/aarch64-softmmu.mak | 1 +
> >> > hw/arm/Makefile.objs | 1 +
> >> > hw/arm/xlnx-versal.c | 324 ++++++++++++++++++++++++++++
> >> > include/hw/arm/xlnx-versal.h | 122 +++++++++++
> >> > 4 files changed, 448 insertions(+)
> >> > create mode 100644 hw/arm/xlnx-versal.c
> >> > create mode 100644 include/hw/arm/xlnx-versal.h
> >>
> >> > + if (!kvm_irqchip_in_kernel()) {
> >> > + qdev_prop_set_bit(gicdev, "has-security-extensions", true);
> >> > + }
> >>
> >> Do you really support KVM for this board/SoC ?
> >>
> >
> >
> > I haven't tried yet, so probably not, but KVM is something we'd like to support further down the road...
> > If you prefer, we can remove this kvm specific check for now though.
>
> I think there's other things you need to do to support KVM
> (for instance, you need to disable EL2 and EL3 on all the CPUs,
> and you need to either handle a GICv2 or error out properly
> if the host system doesn't have a GICv3), so maybe it would
> be better to add support properly later. This isn't a subtle
> check we'll forget to add in later either -- if you set
> has-security-extensions on a KVM GICv3 then the device will
> fail its 'realize' method with a suitable error.
Thanks, yes, we can do that later. I'll remove this check for now.
>
> ...which leads me to notice that here:
>
> + object_property_set_bool(OBJECT(&s->fpd.apu.gic), true, "realized", errp);
>
> we capture the possible error from realize in errp, but we
> don't actually check whether it failed, so the rest of the
> function will plough ahead and try to wire up IRQs and
> MemoryRegions that won't have been created.
Thanks, I'll fix that in the next version!
Cheers,
Edgar
next prev parent reply other threads:[~2018-10-22 11:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-17 21:39 [Qemu-devel] [PATCH v3 0/4] arm: Add first models of Xilinx Versal SoC Edgar E. Iglesias
2018-10-17 21:39 ` [Qemu-devel] [PATCH v3 1/4] net: cadence_gem: Announce availability of priority queues Edgar E. Iglesias
2018-10-17 21:39 ` [Qemu-devel] [PATCH v3 2/4] net: cadence_gem: Announce 64bit addressing support Edgar E. Iglesias
2018-10-17 21:39 ` [Qemu-devel] [PATCH v3 3/4] hw/arm: versal: Add a model of Xilinx Versal SoC Edgar E. Iglesias
2018-10-19 14:18 ` Peter Maydell
2018-10-21 19:24 ` Edgar E. Iglesias
2018-10-21 21:25 ` Peter Maydell
2018-10-22 11:31 ` Edgar E. Iglesias [this message]
2018-10-17 21:39 ` [Qemu-devel] [PATCH v3 4/4] hw/arm: versal: Add a virtual Xilinx Versal board Edgar E. Iglesias
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=20181022113155.GH4229@toto \
--to=edgar.iglesias@xilinx.com \
--cc=alistair@alistair23.me \
--cc=edgar.iglesias@gmail.com \
--cc=figlesia@xilinx.com \
--cc=frasse.iglesias@gmail.com \
--cc=frederic.konrad@adacore.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=sai.pavan.boddu@xilinx.com \
--cc=sstabellini@kernel.org \
/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).