On Tue, 28 Jan 2025 12:48:09 +0000, Manali Shukla wrote:
The upcoming new Idle HLT Intercept feature allows for the HLT instruction execution by a vCPU to be intercepted by the hypervisor only if there are no pending V_INTR and V_NMI events for the vCPU. When the vCPU is expected to service the pending V_INTR and V_NMI events, the Idle HLT intercept won’t trigger. The feature allows the hypervisor to determine if the vCPU is actually idle and reduces wasteful VMEXITs.
[...]
Applied 1-2 to kvm-x86 svm (with the rewritten changelog).
[1/3] x86/cpufeatures: Add CPUID feature bit for Idle HLT intercept https://github.com/kvm-x86/linux/commit/70792aed1455 [2/3] KVM: SVM: Add Idle HLT intercept support https://github.com/kvm-x86/linux/commit/fa662c908073 [3/3] KVM: selftests: Add self IPI HLT test (no commit info)