Skip to content

KVM: TDX: Disable PMU virtualization for TDX VMs

Vishal Annapurve kvm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Introduce arch specific has_protected_pmu statearch/x86/include/asm/kvm_host.h arch/x86/kvm/x86.c+7 -21 reply
2/2KVM: TDX: Set the has_protected_pmu flag for TDX VMsarch/x86/kvm/vmx/tdx.c+6 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] KVM: TDX: Disable PMU virtualization for TDX VMs

TDX module virtualizes PMU for TDX VMs [1]. KVM has limited role to play in virtualizing PMU accesses and needs additional enlightenment to support all toggles provided by TDX module.

This series disables PMU virtualization within KVM for TDX VMs, which is a safe bet until the complete set of PMU controls are implemented within KVM.

[1] Section 15.2: https://cdrdv2.intel.com/v1/dl/getContent/733575

Vishal Annapurve (2):
KVM: x86: Introduce arch specific has_protected_pmu state
KVM: TDX: Set the has_protected_pmu flag for TDX VMs

 arch/x86/include/asm/kvm_host.h | 1 +
 arch/x86/kvm/vmx/tdx.c          | 6 ++++++
 arch/x86/kvm/x86.c              | 8 ++++++--
 3 files changed, 13 insertions(+), 2 deletions(-)
Signature · 1 line
2.54.0.563.g4f69b47b94-goog