]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Drop redundant clearing of vcpu->arch.hflags at INIT/RESET
authorSean Christopherson <seanjc@google.com>
Tue, 13 Jul 2021 16:33:23 +0000 (09:33 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 15:01:59 +0000 (11:01 -0400)
commit86b89c4b94a8fabd8ebb99caed819e5a38dd4455
tree868fe1e33cb7dc94568aad69150e9752cac5cf75
parent0719e248e5217ce70cf09217e5073336829a7bfe
KVM: SVM: Drop redundant clearing of vcpu->arch.hflags at INIT/RESET

Drop redundant clears of vcpu->arch.hflags in init_vmcb() since
kvm_vcpu_reset() always clears hflags, and it is also always
zero at vCPU creation time.  And of course, the second clearing
in init_vmcb() was always redundant.

Suggested-by: Reiji Watanabe <reijiw@google.com>
Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210713163324.627647-46-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c