From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCDjg-0004wd-A7 for qemu-devel@nongnu.org; Mon, 26 Mar 2012 13:29:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCDje-0001VY-Hw for qemu-devel@nongnu.org; Mon, 26 Mar 2012 13:29:39 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:59185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCDje-0001VL-Dq for qemu-devel@nongnu.org; Mon, 26 Mar 2012 13:29:38 -0400 Received: by yenr5 with SMTP id r5so4953582yen.4 for ; Mon, 26 Mar 2012 10:29:36 -0700 (PDT) Message-ID: <4F70A77D.3020204@codemonkey.ws> Date: Mon, 26 Mar 2012 12:29:33 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1332727608-26523-1-git-send-email-liwp@linux.vnet.ibm.com> <4F705F08.4010002@siemens.com> <20120326155444.GJ6016@valinux.co.jp> In-Reply-To: <20120326155444.GJ6016@valinux.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Isaku Yamahata Cc: Anthony Liguori , Wanpeng Li , Jan Kiszka , qemu-devel@nongnu.org, Avi Kivity , Paolo Bonzini , Gavin Shan On 03/26/2012 10:54 AM, Isaku Yamahata wrote: > On Mon, Mar 26, 2012 at 02:20:24PM +0200, Jan Kiszka wrote: >> I'm also sure we will have to refactor the merge significantly again for >> the introduction of additional chipsets and PC boards. But unless those >> requirements can already be specified (Isaku?), that might be unavoidable. > > Agreed. At least I'd like pam/smram stuff decoupled from piix. s/piix/i440fx/ PAM/SRAM has nothing do to with the piix. Part of the problem with the current layout is that the distinction between i440fx and piix is not clear. The piix is just a SuperIO chip (and southbridge). I think the better approach is to have a PCNorthBridge base-class that contains functionality like PAM/SRAM that both I440FX and Q35 inherit from. Obviously, without getting the I440FX/PIIX3 modeling in shape, we can't look reasonable at how to share code. Regards, Anthony Liguori > It is difficult to understand why patches of 5, 6 are needed without further > patches because they don't show how the code will look like eventually. > Anyway I expect some sort of refactor again and am waiting for QOM related > stuff stabilizing. > > thanks,