Received: from eggs.gnu.org ([2001:4830:134:3::10]:44653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHx1p-0004x3-SG for qemu-devel@nongnu.org; Wed, 22 Jul 2015 12:38:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHx1l-0001wt-SH for qemu-devel@nongnu.org; Wed, 22 Jul 2015 12:37:57 -0400 Received: from mail-qk0-f169.google.com ([209.85.220.169]:35746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHx1l-0001wp-OW for qemu-devel@nongnu.org; Wed, 22 Jul 2015 12:37:53 -0400 Received: by qkbm65 with SMTP id m65so102528819qkb.2 for ; Wed, 22 Jul 2015 09:37:53 -0700 (PDT) Date: Wed, 22 Jul 2015 12:37:50 -0400 From: Kevin O'Connor Message-ID: <20150722163750.GA439@morn.localdomain> References: <1437389593-15297-1-git-send-email-real@ispras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1437389593-15297-1-git-send-email-real@ispras.ru> Subject: Re: [Qemu-devel] [PATCH v2] PAM: make PAM emulation closer to documentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Efimov Vasily Cc: Paolo Bonzini , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Kirill Batuzov On Mon, Jul 20, 2015 at 01:53:13PM +0300, Efimov Vasily wrote: > This patch improves PAM emulation. > > PAM defines 4 memory access redirection modes. In mode 1 reads are directed to > RAM and writes are directed to PCI. In mode 2 it is contrary. In mode 0 all > access is directed to PCI. In mode 3 it is directed to RAM. Currently all modes > are emulated using aliases. It is good for modes 0 and 3 but modes 1 and 2 > require more complicated logic. Present API has not needed region type. Hi, Is the motivation of this patch to improve the correctness of the hardware emulation or is there some feature that the current QEMU implementation prevents? There has been some interest recently in making SeaBIOS boot faster on QEMU and the shadow ram fixups in SeaBIOS have been shown to consume a notable amount of bootup time (~12ms on my machine). Will changing the PAM support improve overall boot times? I wonder if going from "mode 0" -> "mode 2" -> "mode 3" would be more expensive than the current SeaBIOS "mode 0" -> "mode 3" mechanism. Also note that SeaBIOS would still need to copy from the high memory location even if the PAM registers were fully implemented as SeaBIOS often exceeds 128K - the "mode 2" overwrite oneself trick would only work for the last 128K of the rom. Thanks, -Kevin