From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQGDR-0003uE-1O for qemu-devel@nongnu.org; Fri, 23 Nov 2018 13:30:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQG2x-0008Kp-RB for qemu-devel@nongnu.org; Fri, 23 Nov 2018 13:19:20 -0500 Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244]:40352) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQG2x-0008Jg-H4 for qemu-devel@nongnu.org; Fri, 23 Nov 2018 13:19:19 -0500 Received: by mail-oi1-x244.google.com with SMTP id t204so10620964oie.7 for ; Fri, 23 Nov 2018 10:19:19 -0800 (PST) MIME-Version: 1.0 References: <20181119120820.29878-1-maozhongyi@cmss.chinamobile.com> <20181119120820.29878-23-maozhongyi@cmss.chinamobile.com> <20181119233139.GO3807@habkost.net> <20181123181638.GO18284@habkost.net> In-Reply-To: <20181123181638.GO18284@habkost.net> From: Peter Maydell Date: Fri, 23 Nov 2018 18:19:07 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PATCH 22/22] core/sysbus: remove the SysBusDeviceClass::initpath List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Mao Zhongyi , QEMU Developers , Thomas Huth , Paolo Bonzini , Markus Armbruster , Richard Henderson , Alistair Francis , Zhang Shengju On Fri, 23 Nov 2018 at 18:16, Eduardo Habkost wrote: > I think this is good enough for now (as long as there's a comment > like Peter suggested). Allowing parent_realize to be NULL would > be inconvenient to all code that uses parent_realize today. > > Personally, I would love to get rid of parent_realize entirely. > We could simply provide a helper to let device subclasses call > the parent's realize function without the need to copy function > pointers around. Agreed -- parent_realize is a hack that is working around a deficiency in our object model, and it would be nice to deal with that. But let's do our cleanups one at a time :-) thanks -- PMM