Received: from eggs.gnu.org ([2001:4830:134:3::10]:38316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaj6L-0003GU-5l for qemu-devel@nongnu.org; Tue, 01 Mar 2016 07:08:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaj6G-0004kP-VS for qemu-devel@nongnu.org; Tue, 01 Mar 2016 07:08:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaj6G-0004kJ-Qf for qemu-devel@nongnu.org; Tue, 01 Mar 2016 07:08:24 -0500 From: Markus Armbruster References: <1456771254-17511-1-git-send-email-armbru@redhat.com> <1456771254-17511-30-git-send-email-armbru@redhat.com> <56D57F17.4020706@redhat.com> Date: Tue, 01 Mar 2016 13:08:21 +0100 In-Reply-To: <56D57F17.4020706@redhat.com> (Paolo Bonzini's message of "Tue, 1 Mar 2016 12:37:59 +0100") Message-ID: <87si0ajt8q.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 29/38] ivshmem: Implement shm=... with a memory backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: claudio.fontana@huawei.com, cam@cs.ualberta.ca, mlureau@redhat.com, qemu-devel@nongnu.org, david.marchand@6wind.com Paolo Bonzini writes: > On 29/02/2016 19:40, Markus Armbruster wrote: >> ivshmem has its very own code to create and map shared memory. >> Replace that with an implicitly created memory backend. Reduces the >> number of ways we create BAR 2 from three to two. >> >> Signed-off-by: Markus Armbruster > > Very appreciated, but do not use user_creatable_add_opts. Instead, > create the object with object_initialize, object_property_set_* and > user_creatable_complete. After the object_initialize, add it with > object_property_add_child *under the ivshmem device itself*, giving it a > name like "internal-shm-backend". Will do. > This matches what virtio-blk dataplane used to do for x-dataplane (now > removed). Note to self: commit a616fb7, try to steal that code. Thanks!