mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
Add initial symmetric multi-processing (SMP) support to UML. With this support enabled, users can tell UML to start multiple virtual processors, each represented as a separate host thread. In UML, kthreads and normal threads (when running in kernel mode) can be scheduled and executed simultaneously on different virtual processors. However, the userspace code of normal threads still runs within their respective single-threaded stubs. That is, SMP support is currently available both within the kernel and across different processes, but still remains limited within threads of the same process in userspace. Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20251027001815.1666872-6-tiwei.bie@linux.dev Signed-off-by: Johannes Berg <johannes.berg@intel.com>
37 lines
573 B
C
37 lines
573 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __UM_OS_LINUX_INTERNAL_H
|
|
#define __UM_OS_LINUX_INTERNAL_H
|
|
|
|
#include <mm_id.h>
|
|
#include <stub-data.h>
|
|
#include <signal.h>
|
|
|
|
/*
|
|
* elf_aux.c
|
|
*/
|
|
void scan_elf_aux(char **envp);
|
|
|
|
/*
|
|
* mem.c
|
|
*/
|
|
void check_tmpexec(void);
|
|
|
|
/*
|
|
* signal.c
|
|
*/
|
|
extern __thread int signals_enabled;
|
|
int timer_alarm_pending(void);
|
|
|
|
/*
|
|
* skas/process.c
|
|
*/
|
|
void wait_stub_done(int pid);
|
|
void wait_stub_done_seccomp(struct mm_id *mm_idp, int running, int wait_sigsys);
|
|
|
|
/*
|
|
* smp.c
|
|
*/
|
|
#define IPI_SIGNAL SIGRTMIN
|
|
|
|
#endif /* __UM_OS_LINUX_INTERNAL_H */
|