Re: CPU Lockups in KVM with deferred hrtimer rearming

Verma, Vishal L
2026-04-21T18:11:17Z

On Tue, 2026-04-21 at 15:29 +0200, Peter Zijlstra wrote:
>
> diff --git a/arch/x86/include/uapi/asm/processor-flags.h
> b/arch/x86/include/uapi/asm/processor-flags.h
> index 81d0c8bf1137..d32edefde587 100644
> --- a/arch/x86/include/uapi/asm/processor-flags.h
> +++ b/arch/x86/include/uapi/asm/processor-flags.h
> @@ -14,6 +14,8 @@
>  #define X86_EFLAGS_FIXED _BITUL(X86_EFLAGS_FIXED_BIT)
>  #define X86_EFLAGS_PF_BIT 2 /* Parity Flag */
>  #define X86_EFLAGS_PF _BITUL(X86_EFLAGS_PF_BIT)
> +#define X86_EFLAGS_KVM_BIT 3 /* KVM Flag -- must be 0 */
> +#define X86_EFLAGS_KVM _BITUL(X86_EFLAGS_PF_BIT)

I fixed up the copy-paste typo here - _BITUL(X86_EFLAGS_KVM_BIT)

.. and with that the tests pass.