From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] List of files containing devices which have not been QOMified
Date: Wed, 7 Nov 2018 16:22:44 +0100 [thread overview]
Message-ID: <500cfa7d-7cae-a7e7-7a9e-741648806f69@redhat.com> (raw)
In-Reply-To: <CAFEAcA_2MqRX2j1pabqbfNdrexpCfNS=xJn=TCaPrkpnD2Bvcw@mail.gmail.com>
On 7/11/18 0:06, Peter Maydell wrote:
> On 6 November 2018 at 19:16, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>> On 6/11/18 19:43, Peter Maydell wrote:
>>>
>>> I had an idea for how to get a rough list of source files
>>> containing devices that haven't been QOMified. The theory
>>> is that a pre-QOM device generally has an "init" function
>>> which allocates memory for the device struct. So looking in
>>> hw/ for files which call g_new*() or g_malloc*() should get
>>> us all the non-QOM devices (as well as a pile of false
>>> positives, of course). The following link is the result of
>>> doing that and then eyeballing the results for false positives
>>> and throwing those out. It might have missed one or two
>>> files or included one or two by mistake. But I think it's
>>> pretty close, and it seems to have caught all the obvious
>>> ones I knew about. There are 61 files on this list.
>>>
>>> I am also suspicious about hw/bt/ but don't know enough
>>> about that subsystem to say if it could benefit from
>>> using QOM objects more.
>>>
>>
>>> hw/arm/exynos4210.c
>>
>> I already did this one.
>>
>>> hw/sd/omap_mmc.c
>> I will do this one.
>
> I have some out-of-tree stuff that deals with this device
> (part of the omap3 patchset tries to do some QOMification,
> but it was a bit tangled with adding omap3 features),
> so if you could hold off on working on the various omap
> devices in this set that might be better, til I see
> whether any of the out-of-tree code is usefully salvageable.
Sure, go ahead with OMAP, this is the last thing I want to touch.
I wondered if there is sens to work on the OMAP devices then read your
thought "I'm not sure what exactly (other than tidiness) we gain from
converting remaining non-QOM devices."
next prev parent reply other threads:[~2018-11-07 15:23 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-06 18:43 [Qemu-devel] List of files containing devices which have not been QOMified Peter Maydell
2018-11-06 19:16 ` Philippe Mathieu-Daudé
2018-11-06 23:06 ` Peter Maydell
2018-11-07 15:22 ` Philippe Mathieu-Daudé [this message]
2018-11-06 19:43 ` Paolo Bonzini
2018-11-06 19:46 ` Paolo Bonzini
2018-11-06 19:51 ` Alistair Francis
2018-11-06 21:23 ` John Snow
2018-11-06 21:26 ` Paolo Bonzini
2018-11-06 23:05 ` Peter Maydell
2018-11-06 23:09 ` Paolo Bonzini
2018-11-07 18:53 ` Palmer Dabbelt
2018-11-09 10:17 ` Mark Cave-Ayland
2018-11-09 10:31 ` Peter Maydell
2018-11-10 15:20 ` Mark Cave-Ayland
2018-11-12 10:57 ` Peter Maydell
2018-11-09 11:17 ` Gerd Hoffmann
2018-11-09 11:29 ` Gerd Hoffmann
2018-11-09 12:39 ` Thomas Huth
2018-11-09 12:44 ` Peter Maydell
2018-11-09 13:16 ` Paolo Bonzini
2018-11-09 14:03 ` [Qemu-devel] deprecating/removing bluetooth (was: Re: List of files containing devices which have not been QOMified) Gerd Hoffmann
2018-11-12 8:51 ` [Qemu-devel] List of files containing devices which have not been QOMified Thomas Huth
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=500cfa7d-7cae-a7e7-7a9e-741648806f69@redhat.com \
--to=philmd@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@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 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).