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)
commitf2759c08d8f4d584e88d129e7392260fb4079ec2
tree4ceeee05dada3fc6cc13a6dc2a436b8d41096de6
parent8bad4606acc91523f54fe4f254fd9f187cd21204
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