Skip to content

KVM: SVM: Aggressively clear vmcb02 clean bits

Jim Mattson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 svm, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: SVM: Mark VMCB_PERM_MAP as dirty on nested VMRUNarch/x86/kvm/svm/nested.c+1 -00 replies
2/2KVM: SVM: Mark VMCB_NPT as dirty on nested VMRUNarch/x86/kvm/svm/nested.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: SVM: Aggressively clear vmcb02 clean bits

It is unlikely that L1 will toggle the MSR intercept bit in vmcb02, or that L1 will change its own IA32_PAT MSR. However, if it does, the affected fields in vmcb02 should not be marked clean.

An alternative approach would be to implement a set of mutators for vmcb02 fields, and to clear the associated clean bit whenever a field is modified.

Jim Mattson (2):
KVM: SVM: Mark VMCB_PERM_MAP as dirty on nested VMRUN
KVM: SVM: Mark VMCB_NPT as dirty on nested VMRUN

 arch/x86/kvm/svm/nested.c | 2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
2.51.0.470.ga7dc726c21-goog