From: Paolo Bonzini <pbonzini@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: qemu-devel <qemu-devel@nongnu.org>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [Qemu-devel] KVM call agenda for Tuesday 3
Date: Tue, 03 Jan 2012 09:54:58 +0100 [thread overview]
Message-ID: <4F02C262.8040808@redhat.com> (raw)
In-Reply-To: <4F0255E3.5030402@codemonkey.ws>
On 01/03/2012 02:12 AM, Anthony Liguori wrote:
> 2/4 is on the list. It's adding the type infrastructure such that when
> you do -device e1000, as far as QOM is concerned you're creating an
> E1000 object which inherits from a PCIDevice, etc.
Yes, sorry, that was quite obvious. I was not sure about what the other
two parts were.
> But device creation still more or less happens with qdev. You couldn't
> directly create a useful E1000 device by doing object_new(TYPE_E1000).
>
> I just effectively squashed 3/4 and 4/4 into a single series. This new
> series (now 3/4) makes it so you can do object_new(TYPE_E1000). It
> basically reduces qdev to just the management of bus relationships.
>
> The new 4/4 series converts BusState to QOM. The effect is that a
> BusState is an Object (but not a device). The children are shown as
> links so the entire qdev tree is now just a subset of the QOM graph.
>
> I think that's it for infrastructure series. After that, the two areas
> I'm interested in focusing on are converting CPUs to qdev and then
> refactoring the pc machine init code to just essentially be a thin
> wrapper for object_new(TYPE_PC).
Nice.
>> In particular, we should decide as soon as possible about moving
>> features up from Device to Object or to new intermediate classes
>> (e.g. IntrospectableObject for properties?),
>
> I think I move properties from Device to Object in either 2/4 or 3/4.
> Anyway, that's my plan.
I would prefer to have an intermediate class for two reasons: 1) so that
we can reuse refcounting and interfaces even for light-weight objects;
2) so that we can keep interface implementations as subclasses of
Object, without carrying a useless baggage for properties (that would be
true for refcounting too, but the cost is much smaller).
Paolo
next prev parent reply other threads:[~2012-01-03 8:55 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-02 12:09 [Qemu-devel] KVM call agenda for Tuesday 3 Juan Quintela
2012-01-02 13:46 ` Andreas Färber
2012-01-02 14:11 ` Paolo Bonzini
2012-01-03 1:12 ` Anthony Liguori
2012-01-03 8:54 ` Paolo Bonzini [this message]
2012-01-02 15:54 ` Peter Maydell
2012-01-03 1:14 ` Anthony Liguori
2012-01-03 10:26 ` Peter Maydell
2012-01-03 12:07 ` Alex Bradbury
2012-01-03 13:37 ` Anthony Liguori
2012-01-03 13:57 ` Peter Maydell
2012-01-03 14:02 ` Anthony Liguori
2012-01-03 14:13 ` Peter Maydell
2012-01-03 1:04 ` Anthony Liguori
2012-01-03 13:52 ` Andreas Färber
2012-01-03 13:59 ` Anthony Liguori
2012-01-03 8:33 ` Stefan Hajnoczi
2012-01-03 12:15 ` Dor Laor
2012-01-03 13:12 ` Stefan Hajnoczi
2012-01-03 14:10 ` Andreas Färber
2012-01-03 14:30 ` Vadim Rozenfeld
2012-01-04 2:47 ` Cao,Bing Bu
2012-01-04 11:25 ` Stefan Hajnoczi
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=4F02C262.8040808@redhat.com \
--to=pbonzini@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=kvm@vger.kernel.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).