[0/2] minor fix on perf_capabilities in KVM/x86

Message ID 20240124003858.3954822-1-mizhang@google.com
Headers
Series minor fix on perf_capabilities in KVM/x86 |

Message

Mingwei Zhang Jan. 24, 2024, 12:38 a.m. UTC
  This simple series fixes the value setup for vcpu->arch.perf_capabilities
to fix an issue in live migration and remove an inline helper in Intel pmu
specific PMU code to make the code simple.

Mingwei Zhang (2):
  KVM: x86/pmu: Reset perf_capabilities in vcpu to 0 if PDCM is disabled
  KVM: x86/pmu: Remove vcpu_get_perf_capabilities()

 arch/x86/kvm/cpuid.c         |  3 +++
 arch/x86/kvm/vmx/pmu_intel.c | 16 ++++------------
 2 files changed, 7 insertions(+), 12 deletions(-)


base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d