From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4vQE-0008E4-Tw for qemu-devel@nongnu.org; Fri, 04 Dec 2015 13:49:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4vQA-0004m6-Rj for qemu-devel@nongnu.org; Fri, 04 Dec 2015 13:49:34 -0500 Received: from mail-qg0-x236.google.com ([2607:f8b0:400d:c04::236]:36624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4vQA-0004lr-Jo for qemu-devel@nongnu.org; Fri, 04 Dec 2015 13:49:30 -0500 Received: by qgcc31 with SMTP id c31so95304371qgc.3 for ; Fri, 04 Dec 2015 10:49:30 -0800 (PST) Date: Fri, 4 Dec 2015 13:49:28 -0500 From: Kevin O'Connor Message-ID: <20151204184928.GA28805@morn.lan> References: <1439302524-19142-1-git-send-email-peter.maydell@linaro.org> <1439302524-19142-2-git-send-email-peter.maydell@linaro.org> <87bnde2nf2.fsf@blackfin.pond.sub.org> <8737yq181q.fsf@blackfin.pond.sub.org> <8737vizn4c.fsf@blackfin.pond.sub.org> <87lh9apedi.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 1/3] hw/sd/pxa2xx_mmci: convert to SysBusDevice object List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Patch Tracking , Markus Armbruster , Stefan Hajnoczi , QEMU Developers On Fri, Dec 04, 2015 at 12:55:07PM +0000, Peter Maydell wrote: > On 4 December 2015 at 12:50, Markus Armbruster wrote: > > To finally answer your question: the proper owner of the property > > connecting the backend is the frontend half of the split device. So, if > > we have separate device models for controller and the block devices > > connected to it, the block backend property belongs to the latter, not > > the former. If we have separate device models for SD controller and > > card, the block backend property belongs to the card, not the > > controller. > > I thought this might be your answer, but this is problematic because > we now have a device in the tree (the sdhci pci card) which has the > property on the controller, and so that's now user-facing command > line ABI which we can't change... If by ABI, you mean the command line format: -device sdhci-pci,drive=drive0 -drive id=drive0,if=sd,file=myimage then I don't see why that should change. As Paolo points out, there is only one card per controller. That's how real hardware does it as well. Cheers, -Kevin