Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5345478yba; Wed, 8 May 2019 11:43:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3hsYfLJ5T6ebeBkVNIV2XQbET6d7dMdsOvuZ3zR+SDE6LQlsazmtudQuPKOp6icPhAi+c X-Received: by 2002:a63:778b:: with SMTP id s133mr7257001pgc.198.1557340988940; Wed, 08 May 2019 11:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557340988; cv=none; d=google.com; s=arc-20160816; b=AJD+5lfdtVoc1GtwweKmX9LTkgg0ysa8edZSUg7hxHlRHxOSK1sfS9BB2DSYcKeFd5 NIF6ff4wmNHCMh82wefA5PZTidM4gLVt4C26cy9Q1IlaRI8tz78zEM3lRaVijFWvYDqm jS+BTH2vvkdrQn2jA4l+6U7A3JJWnYXX2bboc9/7E6o+Bq5IkHFenUbyJC87R4gXdsz1 F5JCvrm4rjCvqKvTKCykE7ckTnhSuvM1WDc6dLacq1axPLrXJlvgIBCiTJ1w7KJnFaWP d9B1OmXx/HNhoZPKOBsahHocZFtNZKq4lNhkbbBkZsyB0zJFx0mOaggTBJSSPkLspbAR NtwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=kRc7c7bd+GcgAzXiJMvwdmCUjCV8vPrHIOjtJLuAVDo=; b=hA+513WLsP+q+VF/49ekqAgXThNQM1BhDdKiE4GdHNjMMweM91/TrrVwTLikXIwZjv HBGQ8uyOiGgm5bfyayBU2shWAosw4n49r0rpq6kgvKg2GOGQtRobbgW2pob0G9J+KIo5 eESU4Rvw8S3L7EQLj+QTNRfkWVQLl7OR/qKoxABlrQ8oBBzm9R15vEY+hOIj1mr8Tfo/ a1YUc9zWRCBDEgcFmxPbMuHX7XvU/IASP2b0pg/vt3VmMG0BhhCoeRMyUj9sAwv4fG1x m6yHmQ3u3VHWLZks7Ze7bjNxc5mp7MfAptV+vrxEYxPwT/a2uo1qbf1oDkR4941a5Kr/ EYZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=yxS7efzj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11si25468745plb.302.2019.05.08.11.42.52; Wed, 08 May 2019 11:43:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=yxS7efzj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728949AbfEHRIu (ORCPT + 99 others); Wed, 8 May 2019 13:08:50 -0400 Received: from mail-eopbgr680050.outbound.protection.outlook.com ([40.107.68.50]:43310 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728533AbfEHRIt (ORCPT ); Wed, 8 May 2019 13:08:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kRc7c7bd+GcgAzXiJMvwdmCUjCV8vPrHIOjtJLuAVDo=; b=yxS7efzjBGGjejEywvNdSVcDRQ8hCFSDgOIUETRpRjJDdU7dV2NbgKd+Uj5jvLxPwvxS7s8pAwaEXtHl5sm0FqNaQxFKQVwUEHSF4R5j6OHCrD2ScKxAmtI7gJNO1SukNXNvUQr2lnClX3FjW8CZJTsrRsqYoxfC09CxWWRlSDU= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB3900.namprd12.prod.outlook.com (10.255.174.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1856.15; Wed, 8 May 2019 17:08:44 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::c96d:c1dd:fd7a:ffd6]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::c96d:c1dd:fd7a:ffd6%4]) with mapi id 15.20.1856.012; Wed, 8 May 2019 17:08:44 +0000 From: "Lendacky, Thomas" To: Borislav Petkov , LKML CC: "H. Peter Anvin" , Ingo Molnar , "Natarajan, Janakarajan" , "kvm@vger.kernel.org" , Liran Alon , Mihai Carabas , Paolo Bonzini , Peter Zijlstra , =?utf-8?B?UmFkaW0gS3LEjW3DocWZ?= , Thomas Gleixner , "x86@kernel.org" Subject: Re: [PATCH] x86/kvm/pmu: Set AMD's virt PMU version to 1 Thread-Topic: [PATCH] x86/kvm/pmu: Set AMD's virt PMU version to 1 Thread-Index: AQHVBb/mS9VAzcalzkCSb/KPnXiDFKZhdd6A Date: Wed, 8 May 2019 17:08:44 +0000 Message-ID: References: <20190508170248.15271-1-bp@alien8.de> In-Reply-To: <20190508170248.15271-1-bp@alien8.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR06CA0012.namprd06.prod.outlook.com (2603:10b6:805:8e::25) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:182::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9a60e92c-1bb3-4bbc-96fb-08d6d3d7d38a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DM6PR12MB3900; x-ms-traffictypediagnostic: DM6PR12MB3900: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 0031A0FFAF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(396003)(136003)(376002)(366004)(39860400002)(199004)(189003)(110136005)(4326008)(386003)(66574012)(6246003)(54906003)(31696002)(76176011)(86362001)(6506007)(14454004)(53546011)(71190400001)(71200400001)(5660300002)(2616005)(3846002)(486006)(6116002)(7416002)(476003)(11346002)(478600001)(446003)(36756003)(72206003)(8676002)(66946007)(81156014)(66556008)(26005)(81166006)(53936002)(66476007)(66446008)(64756008)(2906002)(316002)(256004)(14444005)(31686004)(6512007)(66066001)(6436002)(7736002)(25786009)(52116002)(102836004)(229853002)(6486002)(99286004)(68736007)(73956011)(186003)(305945005)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3900;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: UPV4OFbRJY34pjL9TZqgLBmyGP5anJnQrtSHIk8z96v6fKOyGD34Rq1ADAADeN1OfUpMKSPHBZH/SFSTw14ksnUkgCUMyWRVja789YLNYmJ7M7OKlwo9TvBblov/caT7AVdDRwUdJt3GqmEOKXhe5pyp2zYbmXV92jsXqxnDQz71y8YcYKD3YNqRwrIsdTwA9UTCqrR1WuA8/tEIPGeBKKTiH5y4WopyIEW48UhRoOlfKQiLPvc4AQ/KVedNrbW0D2wddrcQgDvLfmpmtQSMyRjdZz9/f97gp8ttFPaACFUISul44xt9j/pakf50e0384aARbpFRP12O/5iU8y/PrvJxnKNU4e3HJ8kEA5sWQDldzZccQKlU8O/mxLfS9pDzMrQSpBQubTFrvTck7EvzxFSUunQjDbYXeUKnNHX7yQM= Content-Type: text/plain; charset="utf-8" Content-ID: <64EC247CC08F0A49A4C351A1F4E3E622@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a60e92c-1bb3-4bbc-96fb-08d6d3d7d38a X-MS-Exchange-CrossTenant-originalarrivaltime: 08 May 2019 17:08:44.3460 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3900 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gNS84LzE5IDEyOjAyIFBNLCBCb3Jpc2xhdiBQZXRrb3Ygd3JvdGU6DQo+IEZyb206IEJvcmlz bGF2IFBldGtvdiA8YnBAc3VzZS5kZT4NCj4gDQo+IEFmdGVyIGNvbW1pdDoNCj4gDQo+ICAgNjcy ZmY2Y2ZmODBjICgiS1ZNOiB4ODY6IFJhaXNlICNHUCB3aGVuIGd1ZXN0IHZDUFUgZG8gbm90IHN1 cHBvcnQgUE1VIikNCg0KWW91IHNob3VsZCBhZGQgdGhpcyBjb21taXQgYXMgYSBmaXhlcyB0YWcu IFNpbmNlIHRoYXQgY29tbWl0IHdlbnQgaW50byA1LjENCml0IHdvdWxkIGJlIHdvcnRoIHRoaXMg Zml4IGdvaW5nIGludG8gdGhlIDUuMSBzdGFibGUgdHJlZS4NCg0KVGhhbmtzLA0KVG9tDQoNCj4g DQo+IG15I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