All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v15 0/9] x86/arch_prctl Add ARCH_[GET|SET]_CPUID for controlling the CPUID instruction
@ 2017-03-11 19:46 ` Kyle Huey
  0 siblings, 0 replies; 38+ messages in thread
From: Kyle Huey @ 2017-03-11 19:46 UTC (permalink / raw)
  To: Robert O'Callahan, Thomas Gleixner, Andy Lutomirski,
	Ingo Molnar, H. Peter Anvin, x86, Paolo Bonzini,
	Radim Krčmář,
	Jeff Dike, Richard Weinberger, Alexander Viro, Shuah Khan,
	Dave Hansen, Borislav Petkov, Peter Zijlstra, Boris Ostrovsky,
	Len Brown, Dmitry Safonov, Rafael J. Wysocki, David Matlack,
	Nadav Amit, Andi Kleen
  Cc: linux-kernel, user-mode-linux-devel, user-mode-linux-user,
	linux-kselftest, kvm


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

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2017-03-20  8:02 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-11 19:46 [PATCH v15 0/9] x86/arch_prctl Add ARCH_[GET|SET]_CPUID for controlling the CPUID instruction Kyle Huey
2017-03-11 19:46 ` Kyle Huey
2017-03-11 19:46 ` [PATCH v15 1/9] x86/arch_prctl/64: Use SYSCALL_DEFINE2 to define sys_arch_prctl Kyle Huey
2017-03-11 19:46   ` Kyle Huey
2017-03-11 19:46 ` [PATCH v15 2/9] x86/arch_prctl/64: Rename do_arch_prctl to do_arch_prctl_64 Kyle Huey
2017-03-11 19:46   ` Kyle Huey
2017-03-11 19:46 ` [PATCH v15 3/9] x86/arch_prctl: Add do_arch_prctl_common Kyle Huey
2017-03-11 19:46   ` Kyle Huey
2017-03-11 19:46 ` [PATCH v15 4/9] x86/syscalls/32: Wire up arch_prctl on x86-32 Kyle Huey
2017-03-11 19:46   ` Kyle Huey
2017-03-11 19:46 ` [PATCH v15 5/9] x86/cpufeature: Detect CPUID faulting support Kyle Huey
2017-03-11 19:46   ` Kyle Huey
2017-03-11 19:46 ` [PATCH v15 6/9] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID Kyle Huey
2017-03-11 19:46   ` Kyle Huey
2017-03-14 20:36   ` Thomas Gleixner
2017-03-14 20:36     ` Thomas Gleixner
2017-03-20  8:01     ` Kyle Huey
2017-03-20  8:01       ` Kyle Huey
2017-03-14 21:47   ` Linus Torvalds
2017-03-14 21:47     ` Linus Torvalds
2017-03-16 11:09     ` Michael Ellerman
2017-03-16 11:09       ` Michael Ellerman
2017-03-16 14:30       ` Kyle Huey
2017-03-16 14:30         ` Kyle Huey
2017-03-16 18:23         ` Linus Torvalds
2017-03-16 18:23           ` Linus Torvalds
2017-03-17  7:56           ` Geert Uytterhoeven
2017-03-17  7:56             ` Geert Uytterhoeven
2017-03-11 19:47 ` [PATCH v15 7/9] x86/arch_prctl: Selftest for ARCH_[GET|SET]_CPUID Kyle Huey
2017-03-11 19:47   ` Kyle Huey
2017-03-11 19:47 ` [PATCH v15 8/9] KVM: x86: virtualize cpuid faulting Kyle Huey
2017-03-11 19:47   ` Kyle Huey
2017-03-11 19:47 ` [PATCH v15 9/9] x86/arch_prctl: Rename 'code' argument to 'option' Kyle Huey
2017-03-11 19:47   ` Kyle Huey
2017-03-14 20:07   ` Thomas Gleixner
2017-03-14 20:07     ` Thomas Gleixner
2017-03-20  8:01     ` Kyle Huey
2017-03-20  8:01       ` Kyle Huey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.