Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6009988ybl; Tue, 10 Dec 2019 15:25:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwuXT9AeeQFo2EIgbiLTSW9FvIsZThHzNG32aJyD9e9vlbfKEe/3SVkliDM7z+ES425CRRt X-Received: by 2002:aca:d507:: with SMTP id m7mr499262oig.48.1576020327433; Tue, 10 Dec 2019 15:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576020327; cv=none; d=google.com; s=arc-20160816; b=C5b+MIA4rJQwO+9OxwcTW2De25bkGJyF5Bp5l29ZzXwN/JMSPOPmJOctn0FnhoTBdK bOs5BoHbhiVmxoLCDibCdhWIaTMuC5GxX9hL1VlTDLlLOtunUu/G85eVMfGUpEsxkVYg hr76gCrvUaE2P45qq93N4EQAKB47Que5e5IVD3MIJ1XGF4dvuB5Ec3IIcq++HsGErIr4 /LUJ3wq1ys7s0VcTGH2nY3kQs8m2KfIUoraYZMMJPGiVpIZBMhaL5HCOsLQ6apVGNf7E FJFg6KHZPUYzxOyTmHXIXajgy+vVKa8Cwseorj/3nPnj9TL2XHPmOr/HzBn4HvJkdpy8 /z7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ha5C/xJQeGPiEg6YXo24VSdN7u2/LbojSPMD8/mcU48=; b=pek1NiWb9VIsLpQSEsFqmCCSb+QjmVI3OTUy7A0EmHoCbtpXARLtMtlNYJNoZmcjky WeH//l0UezOYU0BYHnfOD/yd1B9/NfRADQHkjElJs93ymBGazXH2WNyUcuppX0JYaY+m VJkCupgEeOZ2QJDGPG/OqZCZjuDZwvk0PovL4EPUGThasaqPjtZiZ+9B8oib0bbYHy0B d+xC5uSaieDF+iO4qaEWOSxIUG77nzbjQ7CpcOBBGvGCkFPgiJMIGpFzfcIMCQGMdBEZ BxSmRZ4HB0aeEOoWeSPot9XTa5Znpp4po05JFQTlVUpW7TIrnOOfvY7E5RyzSY3DX9eb Iwng== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16si2760996otp.230.2019.12.10.15.25.15; Tue, 10 Dec 2019 15:25:27 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727212AbfLJXYf (ORCPT + 99 others); Tue, 10 Dec 2019 18:24:35 -0500 Received: from mga17.intel.com ([192.55.52.151]:23344 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbfLJXYf (ORCPT ); Tue, 10 Dec 2019 18:24:35 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Dec 2019 15:24:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,301,1571727600"; d="scan'208";a="210583762" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.202]) by fmsmga008.fm.intel.com with ESMTP; 10 Dec 2019 15:24:34 -0800 From: Sean Christopherson To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Chao Peng , Luwei Kang Subject: [PATCH 0/2] KVM: VMX: PT (RTIT) bug fix and cleanup Date: Tue, 10 Dec 2019 15:24:31 -0800 Message-Id: <20191210232433.4071-1-sean.j.christopherson@intel.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a missing non-canonical check on writes to the RTIT address MSRs and tack on a cleanup patch. ** ALL PATCHES ARE COMPLETELY UNTESTED ** Untested due to lack of hardware. Sean Christopherson (2): KVM: VMX: Add non-canonical check on writes to RTIT address MSRs KVM: VMX: Add helper to consolidate up PT/RTIT WRMSR fault logic arch/x86/kvm/vmx/vmx.c | 57 ++++++++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 24 deletions(-) -- 2.24.0