[6/5] compel: Hide compel_execute_syscall() from uapi

Submitted by Pavel Emelianov on Nov. 25, 2016, 1:45 p.m.

Details

Message ID 5838407B.6000509@virtuozzo.com
State Accepted
Commit cacea3dd1ab9f4e0ff26371c34829f5c76c9553b
Headers show

Commit Message

Pavel Emelianov Nov. 25, 2016, 1:45 p.m.
It uses regs caller doesn't always know and is actually a
core routine under the API compel_syscall() one.

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
---
 compel/include/infect-priv.h | 2 ++
 compel/include/uapi/infect.h | 9 +++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/compel/include/infect-priv.h b/compel/include/infect-priv.h
index fde5548..8e7443b 100644
--- a/compel/include/infect-priv.h
+++ b/compel/include/infect-priv.h
@@ -72,4 +72,6 @@  extern int sigreturn_prep_regs_plain(struct rt_sigframe *sigframe,
 				     user_fpregs_struct_t *fpregs);
 extern int sigreturn_prep_fpu_frame_plain(struct rt_sigframe *sigframe,
 					  struct rt_sigframe *rsigframe);
+extern int compel_execute_syscall(struct parasite_ctl *ctl,
+		user_regs_struct_t *regs, const char *code_syscall);
 #endif
diff --git a/compel/include/uapi/infect.h b/compel/include/uapi/infect.h
index 142bef6..174c197 100644
--- a/compel/include/uapi/infect.h
+++ b/compel/include/uapi/infect.h
@@ -65,8 +65,13 @@  extern int compel_cure(struct parasite_ctl *ctl);
 extern void *compel_parasite_args_p(struct parasite_ctl *ctl);
 extern void *compel_parasite_args_s(struct parasite_ctl *ctl, int args_size);
 
-extern int compel_execute_syscall(struct parasite_ctl *ctl,
-		user_regs_struct_t *regs, const char *code_syscall);
+extern int compel_syscall(struct parasite_ctl *ctl, int nr, unsigned long *ret,
+		unsigned long arg1,
+		unsigned long arg2,
+		unsigned long arg3,
+		unsigned long arg4,
+		unsigned long arg5,
+		unsigned long arg6);
 extern int compel_run_in_thread(struct parasite_thread_ctl *tctl, unsigned int cmd);
 
 /*