]> 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)
commitde27bd348c8f60c4bbeafcf8b9066e4055188623
treed0a24c581712163b35d1b79eccf11c41d8db203a
parentbf4874fa98cc01526c250be59744a67fe3f2e159
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