mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 06:38:28 +00:00
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:
committed by
Norman Feske
parent
d8f0392c9f
commit
ae291b557d
@ -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_ */
|
||||
|
Reference in New Issue
Block a user