diff options
author | Oliver Upton <oupton@google.com> | 2022-07-20 09:22:51 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-08-10 15:08:28 -0400 |
commit | b74ed7a68ec183403763571a54ca3dcc24cf19eb (patch) | |
tree | da5f990836a9302e0f91cecc870ee7a70fc1db96 /virt/Makefile | |
parent | 59f82aad5940ffd0fedfe07ff755168722193d56 (diff) | |
download | lwn-b74ed7a68ec183403763571a54ca3dcc24cf19eb.tar.gz lwn-b74ed7a68ec183403763571a54ca3dcc24cf19eb.zip |
KVM: Actually create debugfs in kvm_create_vm()
Doing debugfs creation after vm creation leaves things in a
quasi-initialized state for a while. This is further complicated by the
fact that we tear down debugfs from kvm_destroy_vm(). Align debugfs and
stats init/destroy with the vm init/destroy pattern to avoid any
headaches.
Note the fix for a benign mistake in error handling for calls to
kvm_arch_create_vm_debugfs() rolled in. Since all implementations of
the function return 0 unconditionally it isn't actually a bug at
the moment.
Lastly, tear down debugfs/stats data in the kvm_create_vm_debugfs()
error path. Previously it was safe to assume that kvm_destroy_vm() would
take out the garbage, that is no longer the case.
Signed-off-by: Oliver Upton <oupton@google.com>
Message-Id: <20220720092259.3491733-6-oliver.upton@linux.dev>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/Makefile')
0 files changed, 0 insertions, 0 deletions