R
R
redcircle2020-02-19 22:01:21
linux
redcircle, 2020-02-19 22:01:21

How does the syscall instruction work in User Mode Linux?

User Mode Linux runs as a normal process on the operating system (Linux) of the host.
In this case, programs that run inside User Mode Linux perform system calls in the usual way (syscall/sysenter/int 0x80).
But at the same time, such a system call should be executed (by the logic of things) on the main core, and not inside the UML.
How exactly does the UML intercept system calls to programs within it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2020-02-19
@redcircle

Via ptrace, see section 3
https://lwn.net/2001/features/OLS/pdf/pdf/uml.pdf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question