From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSjTV-0001s7-Bl for qemu-devel@nongnu.org; Mon, 29 Oct 2012 03:09:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSjTU-0001Xh-42 for qemu-devel@nongnu.org; Mon, 29 Oct 2012 03:09:29 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:57759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSjTT-0001XQ-Co for qemu-devel@nongnu.org; Mon, 29 Oct 2012 03:09:28 -0400 Received: from /spool/local by e28smtp05.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 29 Oct 2012 12:39:23 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q9T79IOT30605358 for ; Mon, 29 Oct 2012 12:39:18 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q9TCdAn1018188 for ; Mon, 29 Oct 2012 12:39:10 GMT Message-ID: <508E2B98.4050700@linux.vnet.ibm.com> Date: Mon, 29 Oct 2012 15:09:12 +0800 From: Xiao Guangrong MIME-Version: 1.0 References: <50890462.5010307@linux.vnet.ibm.com> <508904C4.7030409@linux.vnet.ibm.com> <508A6772.4040400@siemens.com> In-Reply-To: <508A6772.4040400@siemens.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 3/5] Qemu: do not mark bios readonly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: KVM , Marcelo Tosatti , qemu-devel@nongnu.org, Kevin O'Connor , Avi Kivity , Anthony Liguori , Liu Sheng Jan, On 10/26/2012 06:35 PM, Jan Kiszka wrote: > This has two problems: We know it breaks at least Win 95 that overwrites > its F-segment during boot. And it applies changes to the shadowed area > (below 1 MB) also to the ROM area - I don't think that is the original > behaviour on real hardware. So what is the problem? It can break Win95's running? I tried to install win95 guest but it failed to boot regardless my patchset was applied or not. I found the information that win 95 is not supported at http://www.linux-kvm.org/page/Guest_Support_Status Note: before my patchset, Win 95 still can happily something into ROM area because readonly memory is actually writable on KVM. And win95 can not run on isapc with --no-kvm since it is no way to enable shadow ROM. > > What we need is paravirtual shadow write control for the ISA PC. It's on > my todo list, maybe I will be able to look into this during the next week. > You idea is that modify the code of seabios and use a special way (PV) to notify Qemu to make the bios writable? Actually, I am confused why the guest (including bios) persistently uses shadow ROM even if it is not supported (on ISA PC), i think the right way is move itself to RAM under this case, no? > BTW, your patch series should allow to drop the KVM special case from > pc_system_firmware_init. That version, btw, treats high and low BIOS > areas separately - but only reloads the upper area. Hmm... > You mean that also allow Qemu to use pflash to load bios if kvm is enabled? We can not do that for pflash is a RD device which can not be directly written, kvm can not emulate the instruction which implicitly write the memory. (e.g: using this area as stack). Thanks!