Extend base-hw specific vm-session (fix #738)

Introduce pause syscall for VM objects, and extend the vm-session interface
to support it.
This commit is contained in:
Stefan Kalkowski
2013-05-08 15:22:28 +02:00
committed by Norman Feske
parent d8f0392c9f
commit ae291b557d
6 changed files with 61 additions and 7 deletions

View File

@ -80,8 +80,9 @@ namespace Kernel
ACK_SIGNAL = 29,
/* vm specific */
NEW_VM = 24,
RUN_VM = 25,
NEW_VM = 24,
RUN_VM = 25,
PAUSE_VM = 31,
};
/*****************************************************************
@ -546,6 +547,17 @@ namespace Kernel
*/
inline void run_vm(unsigned const id) {
syscall(RUN_VM, (Syscall_arg)id); }
/**
* Stop execution of a virtual-machine
*
* \param id ID of the targeted VM
*
* Restricted to core threads.
*/
inline void pause_vm(unsigned const id) {
syscall(PAUSE_VM, (Syscall_arg)id); }
}
#endif /* _INCLUDE__KERNEL__SYSCALLS_H_ */