OSDN Git Service

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)
commit46f4898b207ffeeeaebc0fdd4bf4082bf0f88107
tree868fe1e33cb7dc94568aad69150e9752cac5cf75
parent265e43530cb2eb14d5b78e89d310c79959e0eb26
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