[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210827070249.924633-1-xiaoyao.li@intel.com>
Date: Fri, 27 Aug 2021 15:02:42 +0800
From: Xiaoyao Li <xiaoyao.li@...el.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: Xiaoyao Li <xiaoyao.li@...el.com>,
Sean Christopherson <seanjc@...gle.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>,
Wanpeng Li <wanpengli@...cent.com>,
Jim Mattson <jmattson@...gle.com>,
Joerg Roedel <joro@...tes.org>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/7] KVM: VMX: PT (processor trace) optimization cleanup and fixes
Patch 1-3 are optimization and cleanup.
Patch 4-7 are fixes for PT. Patch 4 and 5 fix the virtulazation of PT to
provide architectual consistent behavior for guest. Patch 6 fix the case
that malicious userspace can exploit PT to cause vm-entry failure or #GP
in KVM. Patch 7 fix the potential MSR access #GP if some PT MSRs not
available on hardware.
Patch 3 and patch 7 are added in v2.
Xiaoyao Li (7):
KVM: VMX: Restore host's MSR_IA32_RTIT_CTL when it's not zero
KVM: VMX: Use precomputed vmx->pt_desc.addr_range
KVM: VMX: Rename pt_desc.addr_range to pt_desc.nr_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
KVM: VMX: Only context switch some PT MSRs when they exist
arch/x86/kvm/cpuid.c | 25 ++++++++++
arch/x86/kvm/vmx/vmx.c | 110 ++++++++++++++++++++++++++---------------
arch/x86/kvm/vmx/vmx.h | 2 +-
3 files changed, 95 insertions(+), 42 deletions(-)
--
2.27.0
Powered by blists - more mailing lists