Re: [PATCH] KVM: SVM: Sync CR8 to the local APIC after marking the VMCB clean
From: Yosry Ahmed
Date: Fri Nov 13 2026 - 16:25:05 EST
On Fri, Nov 13, 2026 at 8:28 AM Sean Christopherson <seanjc@xxxxxxxxxx> wrote:
>
> From: Chris Oo <cho@xxxxxxxxxxxxx>
>
> Sync CR8 from the VMCB to the TPR *after* marking all VMCB fields as clean,
> as syncing CR8 can toggle the CR8 write intercept and thus mark INTERCEPTS
> as dirty. Clobbering the dirty bit can result in KVM failing to detect CR8
> writes if the underlying "hardware" uses the clean bits to optimize VMRUN,
> e.g. when KVM is running on Hyper-V.
>
> Failure to intercept CR8 usually manifests as hangs when running Windows as
> L2, as KVM's view of vTPR stays high and so KVM never injects pending IRQs.
>
> Fixes: bb365a506b1e ("KVM: x86: Unconditionally recompute CR8 intercept on PPR update")
> Cc: stable@xxxxxxxxxxxxxxx
> Cc: Carlos López <clopez@xxxxxxx>
> Cc: Stefano Garzarella <sgarzare@xxxxxxxxxx>
> Not-signed-off-by: Chris Oo <cho@xxxxxxxxxxxxx>
> [sean: rewrite changelog, massage comment]
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
Reviewed-by: Yosry Ahmed <yosry@xxxxxxxxxx>