lkml.org 
[lkml]   [2013]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Add a text_poke syscall v2
On Wed, Nov 27, 2013 at 02:40:04PM -0800, H. Peter Anvin wrote:
> Also don't forget we need the IPIs, too...

Yeah, I was simply looking at whether we could get away with executing
an empty syscall, i.e. save us the CPUID and rely only on the IPIs and
IRET.

But we don't IPI ourselves in smp_call_function; actually we remove
ourselves from the cpumask because of deadlocking scenarios. So on
this_cpu we only execute the function with IRQs disabled and CLI/STI is
not serializing.

I wonder if we could use MFENCE instead of CPUID, though, and save us
the clobbering of e*x, maybe even save us some cycles since MFENCE
should be faster than hundred-ish cycles of microcoded CPUID.

:-)

--
Regards/Gruss,
Boris.

Sent from a fat crate under my desk. Formatting is fine.
--


\
 
 \ /
  Last update: 2013-11-28 00:21    [W:0.183 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site