Skip to content
Snippets Groups Projects
Commit 8b633663 authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov
Browse files

KVM: Shove vm stats_id init into kvm_create_vm()

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2119111



commit f2759c08
Author: Oliver Upton <oupton@google.com>
Date:   Wed Jul 20 09:22:47 2022 +0000

    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: default avatarOliver Upton <oupton@google.com>
    Message-Id: <20220720092259.3491733-2-oliver.upton@linux.dev>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>

Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
parent 07f1314d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment