Re: [PATCH v2 45/46] KVM: SVM: Drop redundant clearing of vcpu->arch.hflags at INIT/RESET

From: Paolo Bonzini
Date: Mon Jul 26 2021 - 17:05:10 EST


On 13/07/21 18:33, Sean Christopherson wrote:
Drop redundant clears of vcpu->arch.hflags in init_vmcb() now that
init_vmcb() is invoked only through kvm_vcpu_reset(),

Not true if patch 9 is kept, but at this point hflags is zero anyway, so the patch is okay.

Paolo

which always clears
hflags. And of course, the second clearing in init_vmcb() was always
redundant.