Re: [PATCH v3 11/11] target/i386: implement SYSCALL/SYSRET in 32-bit emulators

2023-06-26 Thread Richard Henderson
On 6/23/23 15:17, Paolo Bonzini wrote: AMD supports both 32-bit and 64-bit SYSCALL/SYSRET, but the TCG only exposes it for 64-bit targets. For system emulation just reuse the helper; for user-mode emulation the ABI is the same as "int $80". The BSDs does not support any fast system call mechani

[PATCH v3 11/11] target/i386: implement SYSCALL/SYSRET in 32-bit emulators

2023-06-23 Thread Paolo Bonzini
AMD supports both 32-bit and 64-bit SYSCALL/SYSRET, but the TCG only exposes it for 64-bit targets. For system emulation just reuse the helper; for user-mode emulation the ABI is the same as "int $80". The BSDs does not support any fast system call mechanism in 32-bit mode so add to bsd-user the