From: Stefano Stabellini Subject: Re: [BUG] BSoD on Windows XP installation Date: Thu, 30 Jan 2014 12:48:01 +0000 Message-ID: References: <52E8FD39.8030307@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-path: In-Reply-To: <52E8FD39.8030307@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Paolo Bonzini Cc: Anthony Perard , George Dunlap , xen-devel@lists.xensource.com, qemu-devel@nongnu.org, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 29 Jan 2014, Paolo Bonzini wrote: > Il 29/01/2014 13:00, Stefano Stabellini ha scritto: > > Hi Paolo, > > we have been trying to fix a BSOD that would happen during the Windows > > XP installation, once every ten times on average. > > After many days of bisection, we found out that commit > > > > commit 149f54b53b7666a3facd45e86eece60ce7d3b114 > > Author: Paolo Bonzini > > Date: Fri May 24 12:59:37 2013 +0200 > > > > memory: add address_space_translate > > > > breaks Xen support in QEMU, in particular the Xen mapcache. > > The reason is that after this commit, l in address_space_rw can span a > > page boundary, however qemu_get_ram_ptr still calls xen_map_cache asking > > to map a single page (if block->offset == 0). > > The appended patch works around the issue by reverting to the old > > behaviour. > > > > What do you think is the right fix for this? > > Maybe we need to add a size parameter to qemu_get_ram_ptr? > > Yeah, that would be best but the patch you attached is fine too with a FIXME > comment. Thanks for the quick reply. I have just sent a better and cleaner version of this patch with a proper commit message and signed-off-by lines: http://marc.info/?l=qemu-devel&m=139108598630562&w=2