Re: [PATCH 3/3] linux-user/i386: Emulate x86_64 vsyscalls

2020-01-16 Thread Alex Bennée
Richard Henderson writes: > On 1/16/20 6:26 AM, Alex Bennée wrote: >>> +/* >>> + * Perform the syscall. None of the vsyscalls should need restarting, >>> + * and all faults should have been caught above. >>> + */ >>> +ret = do_syscall(env, syscall, env->regs[R_EDI], env->re

Re: [PATCH 3/3] linux-user/i386: Emulate x86_64 vsyscalls

2020-01-16 Thread Richard Henderson
On 1/16/20 8:19 AM, Richard Henderson wrote: > On 1/16/20 6:26 AM, Alex Bennée wrote: >>> +/* >>> + * Perform the syscall. None of the vsyscalls should need restarting, >>> + * and all faults should have been caught above. >>> + */ >>> +ret = do_syscall(env, syscall, env->regs[

Re: [PATCH 3/3] linux-user/i386: Emulate x86_64 vsyscalls

2020-01-16 Thread Richard Henderson
On 1/16/20 6:26 AM, Alex Bennée wrote: >> +/* >> + * Perform the syscall. None of the vsyscalls should need restarting, >> + * and all faults should have been caught above. >> + */ >> +ret = do_syscall(env, syscall, env->regs[R_EDI], env->regs[R_ESI], >> + e

Re: [PATCH 3/3] linux-user/i386: Emulate x86_64 vsyscalls

2020-01-16 Thread Alex Bennée
Richard Henderson writes: > Notice the magic page during translate, much like we already > do for the arm32 commpage. At runtime, raise an exception to > return cpu_loop for emulation. > > Signed-off-by: Richard Henderson > --- > target/i386/cpu.h | 1 + > linux-user/i386/cpu_loop

Re: [PATCH 3/3] linux-user/i386: Emulate x86_64 vsyscalls

2020-01-16 Thread Alex Bennée
Richard Henderson writes: > Notice the magic page during translate, much like we already > do for the arm32 commpage. At runtime, raise an exception to > return cpu_loop for emulation. > > Signed-off-by: Richard Henderson So I've been trying to test this but have run into a number of (unrela

[PATCH 3/3] linux-user/i386: Emulate x86_64 vsyscalls

2020-01-14 Thread Richard Henderson
Notice the magic page during translate, much like we already do for the arm32 commpage. At runtime, raise an exception to return cpu_loop for emulation. Signed-off-by: Richard Henderson --- target/i386/cpu.h | 1 + linux-user/i386/cpu_loop.c | 104