From: Greg Kurz <groug@kaod.org>
To: "Cédric Le Goater" <clg@kaod.org>
Cc: David Gibson <david@gibson.dropbear.id.au>,
qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v6 2/4] spapr: introduce a fixed IRQ number space
Date: Wed, 1 Aug 2018 11:13:29 +0200 [thread overview]
Message-ID: <20180801111329.425ff0cc@bahia.lan> (raw)
In-Reply-To: <b510d9a7-fbda-b3c9-98a7-9fffee7a12cf@kaod.org>
On Wed, 1 Aug 2018 09:14:43 +0200
Cédric Le Goater <clg@kaod.org> wrote:
> [ ... ]
>
> >>> +typedef struct sPAPRMachineState sPAPRMachineState;
> >>> +
> >>
> >> Old compilers (GCC < 4.6) might complain about 'redefinition of typedef' if
> >> some file, say hw/ppc/spapr.c, includes both this header and "hw/ppc/xics.h".
> >> We had several build breaks detected by 'make docker-test-build@centos6'...
> >> The correct way to address this would be to move the typedef to the
> >> "qemu/typedefs.h" header.
> >>
> >> This being said, docker-test-build@centos6 vanished with commit e7b3af81597,
> >> so I guess we don't support such old distros anymore, and we can live with
> >> duplicate typedefs.
>
> I have a rhel6 vm for such tests but QEMU now requires python3 and
> glib-2.40 and maybe more stuff. I am not sure one can compile QEMU 3.1
> on rhel/centos 6 anymore :/
>
Minimal Python version is 2.7 actually, but rhel6 only has 2.6.6.
Anyway, with these new requirements, I'm pretty sure we can't build QEMU
anymore with these distros... even though rhel 6 EOL is Nov. 2020.
>
> [ ... ]
>
> >>> /* Release previous MSIs */
> >>> if (msi) {
> >>> + if (!SPAPR_MACHINE_GET_CLASS(spapr)->legacy_irq_allocation) {
> >>> + spapr_irq_msi_free(spapr, msi->first_irq, msi->num);
> >>> + }
> >>
> >> SPAPR_MACHINE_GET_CLASS() does all the recursive type checking, and you
> >> call it three times. Even if this isn't a hot path, maybe cache this in
> >> an smc variable at the beginning of the function as we do pretty much
> >> everywhere else. Also this would give prettier code IMHO.
> >
> > I agree with Greg that this would be a nice improvement, but it can
> > wait until a followup.
>
> The sPAPR code base is very stable so it's not too much work to respin.
> FYI, most of the XIVE v4 patchset still applies without a change.
>
> Tell me if you find any other issues and I will resend.
>
> Thanks,
>
> C.
next prev parent reply other threads:[~2018-08-01 9:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-30 14:11 [Qemu-devel] [PATCH v6 0/4] spapr: introduce a fixed IRQ number space and an IRQ controller backend Cédric Le Goater
2018-07-30 14:11 ` [Qemu-devel] [PATCH v6 1/4] spapr: Add a pseries-3.1 machine type Cédric Le Goater
2018-07-30 14:43 ` Greg Kurz
2018-08-01 4:27 ` David Gibson
2018-07-30 14:11 ` [Qemu-devel] [PATCH v6 2/4] spapr: introduce a fixed IRQ number space Cédric Le Goater
2018-07-31 17:39 ` Greg Kurz
2018-08-01 6:38 ` David Gibson
2018-08-01 7:14 ` Cédric Le Goater
2018-08-01 9:13 ` Greg Kurz [this message]
2018-07-30 14:11 ` [Qemu-devel] [PATCH v6 3/4] spapr: introduce a IRQ controller backend to the machine Cédric Le Goater
2018-08-02 13:54 ` Greg Kurz
2018-08-10 0:46 ` David Gibson
2018-08-10 7:47 ` Cédric Le Goater
2018-08-12 2:58 ` David Gibson
2018-08-15 21:16 ` Cédric Le Goater
2018-07-30 14:11 ` [Qemu-devel] [PATCH v6 4/4] spapr: increase the size of the IRQ number space Cédric Le Goater
2018-08-02 14:47 ` Greg Kurz
2018-08-02 15:59 ` Cédric Le Goater
2018-09-10 6:12 ` David Gibson
2018-09-10 6:33 ` Cédric Le Goater
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=20180801111329.425ff0cc@bahia.lan \
--to=groug@kaod.org \
--cc=clg@kaod.org \
--cc=david@gibson.dropbear.id.au \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.