aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorOliver Upton <oupton@google.com>2022-07-20 09:22:51 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2022-08-10 15:08:28 -0400
commitb74ed7a68ec183403763571a54ca3dcc24cf19eb (patch)
treeda5f990836a9302e0f91cecc870ee7a70fc1db96 /tools/testing
parentKVM: Pass the name of the VM fd to kvm_create_vm_debugfs() (diff)
downloadlinux-dev-b74ed7a68ec183403763571a54ca3dcc24cf19eb.tar.xz
linux-dev-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 'tools/testing')
0 files changed, 0 insertions, 0 deletions