]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Shove vcpu stats_id init into kvm_vcpu_init()
authorOliver Upton <oupton@google.com>
Wed, 20 Jul 2022 09:22:48 +0000 (09:22 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Aug 2022 19:08:27 +0000 (15:08 -0400)
commit62aa69a0fde8cf62be0c12601ace1bf4144e32f0
treed0a24c581712163b35d1b79eccf11c41d8db203a
parent931fd6eac1a2165efdac19967b9488039f3ccc6b
KVM: Shove vcpu stats_id init into kvm_vcpu_init()

Initialize stats_id alongside other kvm_vcpu fields to make it more
difficult to unintentionally access stats_id before it's set.

No functional change intended.

Signed-off-by: Oliver Upton <oupton@google.com>
Message-Id: <20220720092259.3491733-3-oliver.upton@linux.dev>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c