]> git.ipfire.org Git - people/ms/linux.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)
commit58fc116645c53db117c8e6c7b549b228e24a6c73
treed0a24c581712163b35d1b79eccf11c41d8db203a
parentf2759c08d8f4d584e88d129e7392260fb4079ec2
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