RDTSCP | IA32_TSC_AUX on x86-32
Hi,
the RDTSCP opcode is translated as "Read Time-Stamp Counter and Processor ID". It does not read the Processor ID is merely returns the value of IA32_TSC_AUX which has been previously written by the OS. This is documented but is misleading if you never made it past the headline.
Now. On 64bit there is __vdso_getcpu and IA32_TSC_AUX is setup (it also contains the node number but…) for its purpose.
On 32bit there is no __vdso_getcpu and IA32_TSC_AUX is not setup. RDTSCP is not privileged and returns the proper timestamp but the "CPU" field is always zero.
Is the format OS specific and not for user purpose or could IA32_TSC_AUX be setup on 32bit?
Sebastian
Quoted 2 lines · Sebastian Andrzej Siewior
Is the format OS specific and not for user purpose or could
IA32_TSC_AUXbe setup on 32bit?
I don't see why not.
I mean, we wanna remove 32-bit but if you wanna still improve it...
:-)
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteQuoted 9 lines · Borislav Petkov
Quoted 2 lines · Sebastian Andrzej Siewior
Is the format OS specific and not for user purpose or could
IA32_TSC_AUXbe setup on 32bit?I don't see why not.
I mean, we wanna remove 32-bit but if you wanna still improve it...
:-)
Do we have a schedule for the removal? I mean we talk about it for years…
Sebastian
Quoted 2 lines · Sebastian Andrzej Siewior
Do we have a schedule for the removal? I mean we talk about it for years…
Hahah, nah, no schedule. I don't think the time has come yet - even if we want to. I was mostly joking. :-)
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteQuoted 6 lines · Borislav Petkov
Quoted 2 lines · Sebastian Andrzej Siewior
Do we have a schedule for the removal? I mean we talk about it for years…
Hahah, nah, no schedule. I don't think the time has come yet - even if we want to. I was mostly joking. :-)
Given that Pentium-class machines are last x86s without serious security holes, I'd keep 32-bit support for a while :-).
Pavel
Signature · 1 line
People of Russia, stop Putin before his war on Ukraine escalates.