From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGXM2-0000lp-Su for qemu-devel@nongnu.org; Fri, 15 Mar 2013 12:19:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGXM0-0008PM-AT for qemu-devel@nongnu.org; Fri, 15 Mar 2013 12:19:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGXM0-0008NB-2h for qemu-devel@nongnu.org; Fri, 15 Mar 2013 12:19:36 -0400 Message-ID: <51434A11.9020904@redhat.com> Date: Fri, 15 Mar 2013 17:19:29 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1363358063-23973-1-git-send-email-peter.maydell@linaro.org> <51434591.2060203@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 0/5] Remove sysbus_add_memory and sysbus_del_memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Michael Walle , Jan Kiszka , qemu-devel@nongnu.org, =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , patches@linaro.org Il 15/03/2013 17:09, Peter Maydell ha scritto: > On 15 March 2013 16:00, Paolo Bonzini wrote: >> Il 15/03/2013 15:34, Peter Maydell ha scritto: >>> I rather suspect sysbus_add_io and sysbus_del_io should also be >>> removed, but since their users are in PPC and x86 platforms I'll >>> let somebody else do that part :-) >> >> sysbus_add_io and sysbus_del_io are actually a good match for the I/O >> address space of x86, because the model was to have "well-known" port >> numbers standardized across all platforms. So all the boards would have >> to know those port addresses if we used sysbus_init_mmio. > > Maybe they should just call memory_region_add_subregion() > directly then? There's nothing sysbus-device-specific about > what these functions do, they just take a SysBusDevice* and > totally ignore it... It affects the OpenFirmware path, but perhaps we can move the get_fw_dev_path from the Bus to the Device class. Paolo