Re: [PATCH] KVM: SVM: Sync CR8 to the local APIC after marking the VMCB clean

From: Stefano Garzarella

Date: Sun Nov 15 2026 - 03:10:38 EST


On Fri, Nov 13, 2026 at 08:25:56AM -0800, Sean Christopherson 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>
---

LGTM!

Acked-by: Stefano Garzarella <sgarzare@xxxxxxxxxx>