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

KVM: Pass the name of the VM fd to kvm_create_vm_debugfs()

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



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

    KVM: Pass the name of the VM fd to kvm_create_vm_debugfs()

    At the time the VM fd is used in kvm_create_vm_debugfs(), the fd has
    been allocated but not yet installed. It is only really useful as an
    identifier in strings for the VM (such as debugfs).

    Treat it exactly as such by passing the string name of the fd to
    kvm_create_vm_debugfs(), futureproofing against possible misuse of the
    VM fd.

Suggested-by: default avatarSean Christopherson <seanjc@google.com>
Signed-off-by: default avatarOliver Upton <oupton@google.com>
    Message-Id: <20220720092259.3491733-5-oliver.upton@linux.dev>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>

Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
parent 2b4d877d
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