Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1598438
| From | Kyle Huey <me@kylehuey.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v15 0/9] x86/arch_prctl Add ARCH_[GET|SET]_CPUID for controlling the CPUID instruction |
| Date | 2017-03-11 20:50 +0100 |
| Message-ID | <tjVbA-7mC-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
rr (http://rr-project.org/), a userspace record-and-replay reverse- execution debugger, would like to trap and emulate the CPUID instruction. This would allow us to a) mask away certain hardware features that rr does not support (e.g. RDRAND) and b) enable trace portability across machines by providing constant results. Newer Intel CPUs (Ivy Bridge and later) can fault when CPUID is executed at CPL > 0. Expose this capability to userspace as a new pair of arch_prctls, ARCH_GET_CPUID and ARCH_SET_CPUID. Since v14: All: rebased onto x86/process, which contains the switch_to_xtra improvements Patch 4: x86/syscalls/32: Wire up arch_prctl on x86-32 - the new arch_prctl is now syscall number 384, because that was available Patch 5: x86/cpufeature: Detect CPUID faulting support - the newly added probe_xeon_phi_r3mwait is called from init_intel_misc_features
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v15 0/9] x86/arch_prctl Add ARCH_[GET|SET]_CPUID for controlling the CPUID instruction Kyle Huey <me@kylehuey.com> - 2017-03-11 20:50 +0100 [PATCH v15 1/9] x86/arch_prctl/64: Use SYSCALL_DEFINE2 to define sys_arch_prctl Kyle Huey <me@kylehuey.com> - 2017-03-11 20:50 +0100 [PATCH v15 8/9] KVM: x86: virtualize cpuid faulting Kyle Huey <me@kylehuey.com> - 2017-03-11 20:50 +0100 [PATCH v15 3/9] x86/arch_prctl: Add do_arch_prctl_common Kyle Huey <me@kylehuey.com> - 2017-03-11 20:50 +0100 [PATCH v15 4/9] x86/syscalls/32: Wire up arch_prctl on x86-32 Kyle Huey <me@kylehuey.com> - 2017-03-11 20:50 +0100 [PATCH v15 5/9] x86/cpufeature: Detect CPUID faulting support Kyle Huey <me@kylehuey.com> - 2017-03-11 20:50 +0100 [PATCH v15 7/9] x86/arch_prctl: Selftest for ARCH_[GET|SET]_CPUID Kyle Huey <me@kylehuey.com> - 2017-03-11 20:50 +0100 [PATCH v15 2/9] x86/arch_prctl/64: Rename do_arch_prctl to do_arch_prctl_64 Kyle Huey <me@kylehuey.com> - 2017-03-11 20:50 +0100 [PATCH v15 9/9] x86/arch_prctl: Rename 'code' argument to 'option' Kyle Huey <me@kylehuey.com> - 2017-03-11 20:50 +0100
csiph-web