mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-06-16 02:15:47 +00:00
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:
committed by
Will Deacon
parent
2006613929
commit
edb4a8a0e4
@@ -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;
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user