/all/20250124132048.3229049-8-xiaoyao...@intel.com/
[3] https://lore.kernel.org/all/20250302220112.17653-5-dongli.zh...@oracle.com/
Dapeng Mi (2):
target/i386: Call KVM_CAP_PMU_CAPABILITY iotcl to enable/disable PMU
target/i386: Support VMX_VM_EXIT_SAVE_IA32_PERF_GLOBAL_CTRL
Xiaoyao Li (1):
From: Xiaoyao Li
Introduce kvm_arch_pre_create_vcpu(), to perform arch-dependent
work prior to create any vcpu. This is for i386 TDX because it needs
call TDX_INIT_VM before creating any vcpu.
The specific implemnet of i386 will be added in the future patch.
Signed-off-by: Xiaoyao Li
Acked-by:
After introducing mediated vPMU, mediated vPMU must be enabled by
explicitly calling KVM_CAP_PMU_CAPABILITY to enable. Thus call
KVM_CAP_PMU_CAPABILITY to enable/disable PMU base on user configuration.
Suggested-by: Zhao Liu
Signed-off-by: Dapeng Mi
---
target/i386/kvm/kvm.c | 17
Since Sapphire Rapids starts, VMX instrocude a new bit
SAVE_IA32_PERF_GLOBAL_CTRL in VMCS VM-EXIT control field to manage if
vmx can save guest PERF_GLOBAL_CTRL MSR.
This patch enables this feature.
Signed-off-by: Dapeng Mi
---
target/i386/cpu.c | 12
target/i386/cpu.h | 1 +
2