Re: [PATCH] KVM: nSVM: Optimize L12 to L2 vmcb.save copies

From: Paolo Bonzini
Date: Tue Mar 02 2021 - 11:49:21 EST


On 02/03/21 01:59, Sean Christopherson wrote:
+ svm->vmcb->save.cr2 = svm->vcpu.arch.cr2 = vmcb12->save.cr2;
Same question for VMCB_CR2.

Besides the question of how much AMD processors actually use the clean bits (a quick test suggests "not much"), in this specific case I suspect that the check would be more expensive than the savings from a memory load.

Paolo