From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QW5kcsOpIFdlaWRlbWFubg==?= Subject: Re: Windows7 crashes inside the VM when starting a certain program Date: Tue, 26 Jul 2011 12:57:44 +0200 Message-ID: <4E2E9DA8.7040503@web.de> References: <4E154370.5090101@web.de> <4E2E50A0.3040706@web.de> <20110726100809.GK4404@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from fmmailgate01.web.de ([217.72.192.221]:38867 "EHLO fmmailgate01.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751995Ab1GZK5s (ORCPT ); Tue, 26 Jul 2011 06:57:48 -0400 In-Reply-To: <20110726100809.GK4404@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi, 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 ce= rtain >>> game. Actually there are two games both from the same company, that= make >>> the VM crash after starting them. >>> Windows crashes right after starting the game. With the 1st game th= e >>> screen goes black as usual and the cursor keeps spinning for 3-5 se= conds >>> 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 an= d >>> 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 11= 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)? The server is currently running on 2 out of 8 cores with kernel boot=20 parameter "maxcpus=3D2". processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz stepping : 5 cpu MHz : 1596.000 cache size : 8192 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge=20 mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe=20 syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good=20 xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2=20 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi=20 flexpriority ept vpid bogomips : 5405.59 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz stepping : 5 cpu MHz : 1596.000 cache size : 8192 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge=20 mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe=20 syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good=20 xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2=20 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi=20 flexpriority ept vpid bogomips : 5404.84 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: >> the "only" thing crashing, is the application itself. >> Why is that? What is different between the "real" CPU and the one >> provided by qemu-kvm? How can "-cpu host" cause Windows7 to crash, >> while "-cpu Nehalem" "only" crashes the application. >> >> I then had WinDbg attach to the process in question. When the game >> crashes the debugger reports an Assertion Failure. This seems so >> happen as soon as the game accesses the network through a certain >> DLL. >> To exclude the emulated e1000 hardware as the cause, I removed it >> from the VM and passed an Intel network card 82574L to it using >> these lines: >> >> -device pci-assign,host=3D04:00.0,id=3D82574L,addr=3D0x10 \ >> -net none \ >> >> The network card works under Windows7, but the problem of the >> crashing game remains. >> >> Any ideas on how to track the problem are greatly appreciated. >> >> >> Regards >> Andr=C3=A9 >> -- >> To unsubscribe from this list: send the line "unsubscribe kvm" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- > Gleb. Andr=C3=A9