]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit931fd6eac1a2165efdac19967b9488039f3ccc6b
tree4ceeee05dada3fc6cc13a6dc2a436b8d41096de6
parentbad39e6c6c5e9f93cb99b128b911d29065868468
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