From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5FKp-00005u-Vy for qemu-devel@nongnu.org; Tue, 24 May 2016 12:37:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5FKo-0006NS-2V for qemu-devel@nongnu.org; Tue, 24 May 2016 12:37:34 -0400 Received: from mail-vk0-x22f.google.com ([2607:f8b0:400c:c05::22f]:33361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5FKn-0006ND-Uk for qemu-devel@nongnu.org; Tue, 24 May 2016 12:37:34 -0400 Received: by mail-vk0-x22f.google.com with SMTP id r140so29365118vkf.0 for ; Tue, 24 May 2016 09:37:33 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160524163204.GV16305@toto> References: <1463698459-31312-1-git-send-email-edgar.iglesias@gmail.com> <1463698459-31312-4-git-send-email-edgar.iglesias@gmail.com> <20160524163204.GV16305@toto> From: Peter Maydell Date: Tue, 24 May 2016 17:37:14 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v1 3/5] xlnx-zynqmp: Make the RPU subsystem optional List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" Cc: QEMU Developers , Alistair Francis , Peter Crosthwaite , Edgar Iglesias , qemu-arm On 24 May 2016 at 17:32, Edgar E. Iglesias wrote: > On Tue, May 24, 2016 at 05:26:54PM +0100, Peter Maydell wrote: >> Do we have to create them in the set function so we can >> set properties before realize, or could this be deferred >> to realize time? > > Yes, I thought it was recommended to avoid object creation > in realize. But creating the PRU in realize works too. Well, it is recommended, but only in the sense of "prefer to do it in instance init" :-) I think we prefer not to have complicated behaviours happening on property-set because it's a bit unexpected (but sometimes it's necessary if later property-sets wouldn't work otherwise). thanks -- PMM