From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: linux 3.13 guest crash with -cpu host Date: Mon, 03 Feb 2014 15:07:33 +0100 Message-ID: <52EFA2A5.7000203@redhat.com> References: <20140202205930.GA2157@redhat.com> <20140203125828.GH2221@otherpad.lan.raisama.net> <20140203140601.GA24944@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Peter Zijlstra To: "Michael S. Tsirkin" , Eduardo Habkost Return-path: Received: from mx1.redhat.com ([209.132.183.28]:53434 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751294AbaBCOHl (ORCPT ); Mon, 3 Feb 2014 09:07:41 -0500 In-Reply-To: <20140203140601.GA24944@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Il 03/02/2014 15:06, Michael S. Tsirkin ha scritto: >> Linux seems to be trying to read IA32_PERF_CAPABILITIES without checking the >> PDCM flag (CPUID[1].ECX[15]). >> >> I can't see why this wasn't crashing before, though. That code seems to be old. >> >> * v2 and above have a perf capabilities MSR >> */ >> if (version > 1) { >> u64 capabilities; >> >> rdmsrl(MSR_IA32_PERF_CAPABILITIES, capabilities); >> x86_pmu.intel_cap.capabilities = capabilities; >> } >> >> Where does the "v2 and above have a perf capabilities MSR" claim in the code >> come from? > > > But why doesn't it crash on baremetal? > Probably baremetal simply returns 0 or something. > Let me try .. Because KVM doesn't implement the MSR, but your baremetal likely does. Paolo