Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2638455pxb; Tue, 24 Aug 2021 04:10:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrDIBcJHISZnz0OncESi/VEwoE6CTAiQbIt0cSJnY4LHtVjg1zaCtspXoi8nkdCdDMV7AK X-Received: by 2002:a17:906:f15:: with SMTP id z21mr40305194eji.177.1629803419434; Tue, 24 Aug 2021 04:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629803419; cv=none; d=google.com; s=arc-20160816; b=lKA8fXZiV474g6dfNkTVRSrbfOVPtYHRDViZ+JZPUX2gxZ7F4yBPeN31HXOGTGePfP IPcpiX09o8AmUj4fIKOzONN4xmzkwZmD/rcErbzkja8wtob0Tz+UcHMv7GTcGkBnanmq exGH2+NTjM/HhmmlQC8HQy2j+KD7J7hk/Vf5hm5EWcCMXsEOF70ODxw6rQ8zSyONXQ5v mh3GgEB1vHYnL9fwMagsz4kdI6AmOnRqLj/wPHsxNNhgN5AqnZTDpjmJDrumkYxoZ4fV QXgs1VyLYmlsn7RyxzPsdGKzEu/1nMImwbxq0HgJj4+czcTtggcLVIQJzorADp2ervDW zmXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HDBZRTODkLvrjsarfYkyplZQhnc7cjYypxU07o9lyDo=; b=SVSUCPczxmLJPrlYIptqyCmXstBGtTP2/EV64Nrbwuf25r40gYDFWTCE45l5oHSpUg GtmCgo/ha2j4kkI05ReDg1NwYTiAaIZNXCTRG25R4rTa8Incgo2bDOsAzdCBw9waS1Bk F1DNxadDBPsFFXqtagJaeVCBbOJ6w2BKN3K/hsIaKoCNOkfXDF9ZD3oVus6Rjt0JHQiX eYLmHAq20dyo0/CYagUruLpCvVl/Y38L2nYbTzmW/B/KUKgsC6YLbCad0T3MJDSWcH6L Yq1fkSKh6JJWqoGukKxT0BoINh0yfcO6yjr6bujVxUBuyPbom4tJ40i9+I98VK/kXuU4 1L9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id v3si17518710eji.473.2021.08.24.04.09.55; Tue, 24 Aug 2021 04:10:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236710AbhHXLJK (ORCPT + 99 others); Tue, 24 Aug 2021 07:09:10 -0400 Received: from mga18.intel.com ([134.134.136.126]:3702 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236678AbhHXLJG (ORCPT ); Tue, 24 Aug 2021 07:09:06 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10085"; a="204423817" X-IronPort-AV: E=Sophos;i="5.84,347,1620716400"; d="scan'208";a="204423817" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2021 04:08:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,347,1620716400"; d="scan'208";a="493501615" Received: from lxy-dell.sh.intel.com ([10.239.159.31]) by fmsmga008.fm.intel.com with ESMTP; 24 Aug 2021 04:08:19 -0700 From: Xiaoyao Li To: Paolo Bonzini Cc: Xiaoyao Li , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] KVM: VMX: PT (processor trace) optimizations and fixes Date: Tue, 24 Aug 2021 19:07:38 +0800 Message-Id: <20210824110743.531127-1-xiaoyao.li@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch 1 and 2 are optimizations and cleanup. Patch 3 - 5 are fixes for PT handling. Xiaoyao Li (5): KVM: VMX: Restore host's MSR_IA32_RTIT_CTL when it's not zero KVM: VMX: Use cached vmx->pt_desc.addr_range KVM: VMX: RTIT_CTL_BRANCH_EN has no dependency on other CPUID bit KVM: VMX: Disallow PT MSRs accessing if PT is not exposed to guest KVM: VMX: Check Intel PT related CPUID leaves arch/x86/kvm/cpuid.c | 25 +++++++++++++++++++++++++ arch/x86/kvm/vmx/vmx.c | 34 +++++++++++++++++++++------------- 2 files changed, 46 insertions(+), 13 deletions(-) -- 2.27.0