[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] qom: fix inherited interfaces
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH v2] qom: fix inherited interfaces |
Date: |
Tue, 24 Dec 2013 01:18:57 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
Am 20.12.2013 22:54, schrieb Paolo Bonzini:
> The interface type rework had two bugs with interfaces that are inherited
> from a superclass. First of all, the implementation type name was wrong
> (for example it was subclass::superclass::interface rather than
> just subclass::interface). Second, interfaces not registering their
> type anymore means that accessing superclass::interface by type name
> will fail.
>
> This can be fixed by pre-initializing ti->parent_type of subclass::interface
> to superclass::interface.
>
> Reported-by: Igor Mammedov <address@hidden>
> Tested-by: Igor Mammedov <address@hidden>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> Andreas, perhaps this can be squashed with
> 'qom: do not register interface "types" in the type table'.
Thanks, I have squashed it, but I would appreciate if someone more
familiar with interfaces could take a quick look at my commit message
before I send a PULL tomorrow. Should I drop Reported-by during squash?
https://github.com/afaerber/qemu-cpu/commits/qom-next
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg