Project

General

Profile

Actions

Bug #729

closed

patch to fix SMP vkernel reboots

Added by josepht almost 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Rebooting an SMP vkernel currently doesn't work since kern_execve()
won't exec if multiple LWPs are present. The attached patch adds a
signal handler for SIGUSR2 which calls pthread_exit() on the current
thread and a function kill_vcpus() that sends SIGUSR2 to each of the
virtual CPU threads. I'm not sure if I need to do some memory
clean-up or not, so let me know if I'm missing something.

Joe


Files

vk_reboot.patch (2.45 KB) vk_reboot.patch josepht, 07/12/2007 03:55 PM
Actions

Also available in: Atom PDF