KVM: Shove vm stats_id init into kvm_create_vm()
authorOliver Upton <oupton@google.com>
Wed, 20 Jul 2022 09:22:47 +0000 (09:22 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Aug 2022 19:08:27 +0000 (15:08 -0400)
commitbf4874fa98cc01526c250be59744a67fe3f2e159
tree4ceeee05dada3fc6cc13a6dc2a436b8d41096de6
parentd1b6a8ec49b6332bc34a8877d79d630a44b9e873
KVM: Shove vm stats_id init into kvm_create_vm()

Initialize stats_id alongside other struct kvm fields to make it more
difficult to unintentionally access stats_id before it's set.  While at
it, move the format string to the first line of the call and fix the
indentation of the second line.

No functional change intended.

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