From: "Daniel P. Berrange" <berrange@redhat.com>
To: Lin Ma <lma@suse.com>
Cc: qemu-devel@nongnu.org, afaerber@suse.de, armbru@redhat.com,
pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCH v3 1/3] qom: make base type user-creatable abstract
Date: Mon, 26 Sep 2016 11:37:04 +0100 [thread overview]
Message-ID: <20160926103703.GF18393@redhat.com> (raw)
In-Reply-To: <20160926101627.14296-2-lma@suse.com>
On Mon, Sep 26, 2016 at 06:16:25PM +0800, Lin Ma wrote:
> Signed-off-by: Lin Ma <lma@suse.com>
> ---
> qom/object_interfaces.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/qom/object_interfaces.c b/qom/object_interfaces.c
> index bf59846..9288242 100644
> --- a/qom/object_interfaces.c
> +++ b/qom/object_interfaces.c
> @@ -217,6 +217,7 @@ static void register_types(void)
> static const TypeInfo uc_interface_info = {
> .name = TYPE_USER_CREATABLE,
> .parent = TYPE_INTERFACE,
> + .abstract = true,
> .class_size = sizeof(UserCreatableClass),
> };
This doesn't make any conceptual sense. UserCreatable is an inteface and
by definition all interfaces are abstract.
Were you trying to fix some particular real bug here ? If so, we almost
certainly need a different fix to what's suggested here, because QOM
should automatically treat all interfaces as abstract by their very
nature.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
next prev parent reply other threads:[~2016-09-26 10:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-26 10:16 [Qemu-devel] [PATCH v3 0/3] object: Add 'help' option for all available backends and properties Lin Ma
2016-09-26 10:16 ` [Qemu-devel] [PATCH v3 1/3] qom: make base type user-creatable abstract Lin Ma
2016-09-26 10:37 ` Daniel P. Berrange [this message]
2016-10-10 14:32 ` [Qemu-devel] 答复: " Lin Ma
2016-10-10 14:45 ` Paolo Bonzini
2016-10-10 15:01 ` Daniel P. Berrange
2016-10-10 16:37 ` Paolo Bonzini
2016-09-26 10:16 ` [Qemu-devel] [PATCH v3 2/3] qapi: auto generate enum value strings Lin Ma
2016-09-26 10:38 ` Daniel P. Berrange
2016-09-26 20:17 ` Eric Blake
2016-10-10 15:09 ` [Qemu-devel] 答复: " Lin Ma
2016-10-10 19:00 ` Eric Blake
2016-10-11 6:56 ` Markus Armbruster
2016-10-13 10:02 ` Lin Ma
2016-09-26 10:16 ` [Qemu-devel] [PATCH v3 3/3] object: Add 'help' option for all available backends and properties Lin Ma
2016-09-26 10:41 ` Daniel P. Berrange
2016-10-10 14:38 ` [Qemu-devel] 答复: " Lin Ma
2016-09-26 10:34 ` [Qemu-devel] [PATCH v3 0/3] " no-reply
2016-09-26 10:39 ` Paolo Bonzini
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=20160926103703.GF18393@redhat.com \
--to=berrange@redhat.com \
--cc=afaerber@suse.de \
--cc=armbru@redhat.com \
--cc=lma@suse.com \
--cc=pbonzini@redhat.com \
--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 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.