add sysenter/syscall emulation for 32bit compat mode
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | allow emulation of syscalls instructions on #UDarch/ | +26 | 0 replies | |
| 2/6 | add missing EFLAGS bit definitionsarch/ | +3 | 0 replies | |
| 3/6 | prepare for emulation of syscall instructionsarch/ | +15 | 0 replies | |
| 4/6 | add syscall emulationarch/ | +88 | 3 replies | |
| 5/6 | add sysenter emulationarch/ | +71 | 0 replies | |
| 6/6 | add sysexit emulationarch/ | +78 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] add sysenter/syscall emulation for 32bit compat mode
sysenter/sysexit are not supported on AMD's 32bit compat mode, whereas syscall is not supported on Intel's 32bit compat mode. To allow cross vendor migration we emulate the missing instructions by setting up the processor state accordingly.
The sysenter code was originally sketched by Amit Shah, it was completed, debugged, syscall added and made-to-work by Christoph Egger and polished up by Andre Przywara.
Please note that sysret does not need to be emulated, because it will be exectued in 64bit mode and returning to 32bit compat mode works on Intel.
This has been tested with GETPIDs in a tight loop in compat mode on both Intel and AMD boxes. Additionally a 32-bit userland was booted under a 64-bit kernel and then cross-vendor migrated.
Please apply or comment ;-)
Regards,
Andre.