Re: [PATCH] KVM: nSVM: Mark all of vmcb02 dirty when restoring nested state
From: Sean Christopherson
Date: Thu Mar 05 2026 - 12:16:20 EST
On Tue, 10 Feb 2026 01:08:06 +0000, Yosry Ahmed wrote:
> When restoring a vCPU in guest mode, any state restored before
> KVM_SET_NESTED_STATE (e.g. KVM_SET_SREGS) will mark the corresponding
> dirty bits in vmcb01, as it is the active VMCB before switching to
> vmcb02 in svm_set_nested_state().
>
> Hence, mark all fields in vmcb02 dirty in svm_set_nested_state() to
> capture any previously restored fields.
>
> [...]
Applied to kvm-x86 nested, thanks!
[1/1] KVM: nSVM: Mark all of vmcb02 dirty when restoring nested state
https://github.com/kvm-x86/linux/commit/e63fb1379f4b
--
https://github.com/kvm-x86/linux/tree/next