kvmtool: Set the thread names for terminal and virtio-net-ctrl

The terminal handling thread and the virtio-net-ctrl don't
set their name, which ends up as follows up:

 terminal => lkvm
 virtio-net-ctrl => kvm-cpu-X !!

Set the thread name explicitly to term-poll and virtio-net-ctrl
respectively

Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
Suzuki K. Poulose
2015-04-24 12:23:57 +01:00
committed by Will Deacon
parent 2006613929
commit edb4a8a0e4
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -101,9 +101,10 @@ static void *term_poll_thread_loop(void *param)
{
struct pollfd fds[TERM_MAX_DEVS];
struct kvm *kvm = (struct kvm *) param;
int i;
kvm__set_thread_name("term-poll");
for (i = 0; i < TERM_MAX_DEVS; i++) {
fds[i].fd = term_fds[i][TERM_FD_IN];
fds[i].events = POLLIN;
+2
View File
@@ -232,6 +232,8 @@ static void *virtio_net_ctrl_thread(void *p)
struct virtio_net_ctrl_hdr *ctrl;
virtio_net_ctrl_ack *ack;
kvm__set_thread_name("virtio-net-ctrl");
while (1) {
mutex_lock(&ndev->io_lock[id]);
if (!virt_queue__available(vq))