commit | 605c713023e3925d0444f495a42c903cb6ce875f | [log] [tgz] |
---|---|---|
author | Peter Xu <peterx@redhat.com> | Fri Jun 25 11:32:07 2021 -0400 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Mon Aug 02 11:01:46 2021 -0400 |
tree | 2096d96ce98862bac429840fcb3b79b979ad1072 | |
parent | 1694caef426247bb406c2b04672336ef77b5fb87 [diff] |
KVM: Introduce kvm_get_kvm_safe() Introduce this safe version of kvm_get_kvm() so that it can be called even during vm destruction. Use it in kvm_debugfs_open() and remove the verbose comment. Prepare to be used elsewhere. Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20210625153214.43106-3-peterx@redhat.com> [Preserve the comment in kvm_debugfs_open. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>