From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756016AbcE0Pi4 (ORCPT ); Fri, 27 May 2016 11:38:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57517 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755796AbcE0Piz (ORCPT ); Fri, 27 May 2016 11:38:55 -0400 Date: Fri, 27 May 2016 17:38:50 +0200 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: kmeaw@yandex-team.ru Cc: "Gabriel L. Somlo" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "gleb@kernel.org" , "pbonzini@redhat.com" Subject: Re: [PATCH] KVM: Handle MSR_IA32_PERF_CTL Message-ID: <20160527153850.GC11721@potion> References: <770161464247923@webcorp02g.yandex-team.ru> <20160526203931.GB25334@potion> <20160526204439.GF2186@HEDWIG.INI.CMU.EDU> <920591464331762@webcorp02f.yandex-team.ru> <20160527152224.GA11721@potion> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160527152224.GA11721@potion> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 27 May 2016 15:38:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2016-05-27 17:22+0200, Radim Krčmář: > (I wonder why MacOS X doesn't read IA32_PERF_STATUS, though.) Oh, it maybe does ... we already emulate status and return 0x1000 in its bottom 16 bits. I have no idea what is that supposed to mean, but I think we should return 0x1000 in IA32_PERF_CTL then. (Would be nice to understand how that 0x1000 happened ... we might want 0 in both.)