linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] x86/fpu: Allow clearcpuid= to clear several bits
@ 2020-04-22 12:03 John Haxby
  2020-04-22 12:03 ` [PATCH 1/1] " John Haxby
  0 siblings, 1 reply; 5+ messages in thread
From: John Haxby @ 2020-04-22 12:03 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, H. Peter Anvin,
	Andi Kleen, Jonathan Corbet
  Cc: x86, linux-doc, linux-kernel, John Haxby

Back in the mists of time, well, prior to 4.14.9, you could put clearcpuid=N
several times on the command line to clear several CPUID bits.  Unfortunately,
there was a problem with the way that this was done which meant XSAVE, in
particular, wasn't cleared early enough.  This was fixed in 0c2a3913d6f5
("x86/fpu: Parse clearcpuid= as early XSAVE argument").  Unfortunately that
also meant that only one bit could be cleared.

This patch mostly fixes that.  Gone is the old, anachronistic, multiple
clearcpuid= arguments to be replaced by a single clearcpuid=BITNUM[,BITNUM,...]
argument.  It's no longer possible to clear perhaps dozens of flags with a very
long kernel command line, but you can clear up to about eight bits now instead
of just one.

jch


John Haxby (1):
  x86/fpu: Allow clearcpuid= to clear several bits

 .../admin-guide/kernel-parameters.txt         | 24 ++++++++++---------
 arch/x86/kernel/fpu/init.c                    | 18 ++++++++------
 2 files changed, 24 insertions(+), 18 deletions(-)

-- 
2.25.3


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

end of thread, other threads:[~2020-04-23  1:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-22 12:03 [PATCH 0/1] x86/fpu: Allow clearcpuid= to clear several bits John Haxby
2020-04-22 12:03 ` [PATCH 1/1] " John Haxby
2020-04-22 14:35   ` Andi Kleen
2020-04-22 15:21     ` John Haxby
2020-04-23  1:41       ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).