mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-01 02:34:45 +00:00
kvm tools: Specify names for VM internal threads
Give threads a meaningful name. This makes debugging much easier, and everything else much prettier. Suggested-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sasha.levin@oracle.com> [ penberg@kernel.org: specify vcpu names ] Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
@@ -63,6 +63,8 @@ static void *disk_image__thread(void *param)
|
||||
int nr, i;
|
||||
u64 dummy;
|
||||
|
||||
kvm__set_thread_name("disk-image-io");
|
||||
|
||||
while (read(disk->evt, &dummy, sizeof(dummy)) > 0) {
|
||||
nr = io_getevents(disk->ctx, 1, ARRAY_SIZE(event), event, ¬ime);
|
||||
for (i = 0; i < nr; i++)
|
||||
|
||||
Reference in New Issue
Block a user