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: Sun, 31 Jul 2011 11:34:02 +0300 Message-ID: <20110731083402.GW4404@redhat.com> References: <4E154370.5090101@web.de> <4E2E50A0.3040706@web.de> <20110726100809.GK4404@redhat.com> <4E2E9DA8.7040503@web.de> <20110727085627.GO4404@redhat.com> <4E325F43.4050701@web.de> <20110729113713.GA15968@redhat.com> <4E33F917.4000305@web.de> <4E350F40.2010508@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: =?utf-8?B?QW5kcsOp?= Weidemann , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:19136 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751268Ab1GaIeD convert rfc822-to-8bit (ORCPT ); Sun, 31 Jul 2011 04:34:03 -0400 Content-Disposition: inline In-Reply-To: <4E350F40.2010508@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Jul 31, 2011 at 11:16:00AM +0300, Avi Kivity wrote: > On 07/30/2011 03:29 PM, Andr=C3=A9 Weidemann wrote: > >>Looks like it tries to read MSR_LASTBRANCH_TOS MSR which kvm does n= ot > >>support. Do you see something interesting in dmesg? I wonder how > >>availability of the MSR should be checked. > > > > > >You are right about the MSR. The log file from the time of > >occurrence shows the following: > > > >Jul 4 18:55:12 server kernel: [ 1528.618647] kvm: 3123: cpu1 > >kvm_set_msr_common: MSR_IA32_DEBUGCTLMSR 0x1, nop > >Jul 4 18:55:12 server kernel: [ 1528.619444] kvm: 3123: cpu1 > >unhandled rdmsr: 0x1c9 > > >=20 > You can try >=20 > $ rmmod kvm-intel kvm > $ modprobe kvm ignore_msrs=3D1 > $ modprobe kvm-intel >=20 > (or kvm-amd, as the case may be) >=20 > This will work around the issue, but the application may not > function correctly. >=20 I wonder why Windows tries to use this MSR with -cpu host, but not with= -cpu Nehalem. Both cpus have this MSR (it is supported back to P4 it seams).= =20 -- Gleb.