From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SROlw-00020R-4d for qemu-devel@nongnu.org; Mon, 07 May 2012 10:18:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SROlr-0005Py-2t for qemu-devel@nongnu.org; Mon, 07 May 2012 10:18:43 -0400 Received: from david.siemens.de ([192.35.17.14]:21292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SROlq-0005KG-QN for qemu-devel@nongnu.org; Mon, 07 May 2012 10:18:39 -0400 Message-ID: <4FA7D9B4.9000607@siemens.com> Date: Mon, 07 May 2012 11:18:28 -0300 From: Jan Kiszka MIME-Version: 1.0 References: <4FA6CB05.3060004@msgid.tls.msk.ru> <4FA76682.7090004@msgid.tls.msk.ru> <4FA7D35F.2060908@msgid.tls.msk.ru> In-Reply-To: <4FA7D35F.2060908@msgid.tls.msk.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] current qemu git does not work with win7 guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: qemu-devel , Gleb Natapov On 2012-05-07 10:51, Michael Tokarev wrote: > So, refreshing it all again with more correct information. > > First, it appears that only 32bit version of qemu userspace is > affected, and only when using 32bit version of guest. So far, > either 64bit qemu userpace or 64bit windows7 guest is enough > for the issue to not show up. Second, both win7 and winXP > (32bit) are affected. Third, current qemu-kvm/master appears > to be unaffected too. > > The problem is that on first and all subsequent guest REBOOT > (not first boot but really REBOOT) -- after the guest rebuilt > its HAL I guess, due to some changes in "hardware" it noticed, -- > the guest BSODs during boot with this code: > > STOP: 0x0000005C (0x000000000000010B, 0x0000000000000003, > 0x000000000000000, 0x000000000000000) > > After painful bisection between 1.0 and current git, the result > is this: > > First bad commit: > commit 5b6fb069378e61c45c577bbec3d7ef60367f7e4c > Author: Avi Kivity > Date: Thu Mar 1 12:58:46 2012 +0200 > > pc-bios: update kvmvapic.bin > > Signed-off-by: Avi Kivity > > diff --git a/pc-bios/kvmvapic.bin b/pc-bios/kvmvapic.bin > new file mode 100755 > index 0000000..045f5c2 > Binary files /dev/null and b/pc-bios/kvmvapic.bin differ > > Which, despite the name, actually INTRODUCES kvmvapic.bin, > not merely updates it. So apparently this introduction of > kvmvapic.bin resulted in autoloading implemented earlier to > starte entering the game, which appears to be this one: > > commit e5ad936b0fd7dfd7fd7908be6f9f1ca88f63b96b > Author: Jan Kiszka > Date: Fri Feb 17 18:31:19 2012 +0100 > > kvmvapic: Introduce TPR access optimization for Windows guests > > And indeed, we're talking about windows guests here... > > Anything I can do further to debug/fix the issue? > I have a 32-bit WinXP here to test (but not a Win7-32) and will give it a try later. What irritates me is that qemu.git has a problem here but not latest qemu-kvm.git. Both are very similar now. Hmm, what is your qemu.git command line again? Does it include "-machine accel=kvm,kernel_irqchip=on" (to enable in-kernel irqchip)? Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux