From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: Windows7 crashes inside the VM when starting a certain program Date: Wed, 27 Jul 2011 11:56:27 +0300 Message-ID: <20110727085627.GO4404@redhat.com> References: <4E154370.5090101@web.de> <4E2E50A0.3040706@web.de> <20110726100809.GK4404@redhat.com> <4E2E9DA8.7040503@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: =?utf-8?B?QW5kcsOp?= Weidemann Return-path: Received: from mx1.redhat.com ([209.132.183.28]:62778 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752178Ab1G0I43 convert rfc822-to-8bit (ORCPT ); Wed, 27 Jul 2011 04:56:29 -0400 Content-Disposition: inline In-Reply-To: <4E2E9DA8.7040503@web.de> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jul 26, 2011 at 12:57:44PM +0200, Andr=C3=A9 Weidemann wrote: > Hi, >=20 > On 26.07.2011 12:08, Gleb Natapov wrote: > >On Tue, Jul 26, 2011 at 07:29:04AM +0200, Andr=C3=A9 Weidemann wrote= : > >>On 07.07.2011 07:26, Andr=C3=A9 Weidemann wrote: > >>>Hi, > >>>I am running Windows7 x64 in a VM which crashes after starting a c= ertain > >>>game. Actually there are two games both from the same company, tha= t make > >>>the VM crash after starting them. > >>>Windows crashes right after starting the game. With the 1st game t= he > >>>screen goes black as usual and the cursor keeps spinning for 3-5 s= econds > >>>until Windows crashes. With the second game I get to 3D the login > >>>screen. The game then crashes after logging in. > >>>Windows displays this error message on the first crash: > >>>http://pastebin.com/kMzk9Jif > >>>Windows then finishes writing the crash dump and restarts. > >>>I can reproduce Windows crashing every time I start the game while= the > >>>VM keeps running without any problems. > >>>When Windows reboots after the first crash and the game is started > >>>again, the message on the following blue screen changes slightly a= nd > >>>stays the same(except for the addresses) for every following crash= : > >>>http://pastebin.com/jVtBc4ZH > >>> > >>>I first thought that this might be related to a certain feature in= 3D > >>>acceleration being used, but Futuremark 3DMark Vantage or 3DMark 1= 1 run > >>>without any problems. They run a bit choppy on some occasions, but= do > >>>that without crashing Windows7 or the VM. > >>> > >>>How can I proceed to investigate what is going wrong? > >> > >>I did some testing and found out that Windows7 does not crash > >>anymore when changing "-cpu host" to "-cpu Nehalem". After doing so= , > >What is your host cpu (cat /proc/cpuinfo)? >=20 > The server is currently running on 2 out of 8 cores with kernel boot > parameter "maxcpus=3D2". >=20 > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr > pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm > pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good > xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est > tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow > vnmi flexpriority ept vpid =46lags that are present on -cpu host but not -cpu Nehalem (excluding v= mx related flags): vme dts acpi ss ht tm pbe rdtscp constant_tsc arch_perfmon pebs bts rep= _good xtopology nonstop_tsc aperfmperf dtes64 monitor ds_cpl est tm2 xtpr pdc= m ida=20 Some of them may be synthetic and some of them may be filtered by KVM. Can you try to run "-cpu host,-vme,-dts..." (specifying all of those flags with -). Drop those that qemu does not recognize. See if result will be the same as with -cpu Nehalem. If yes, then try to find out wit= h flag make the difference. -- Gleb.