lkml.org 
[lkml]   [2014]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] x86: Remove hpet vclock support
On Sat, Feb 1, 2014 at 7:43 AM, Clemens Ladisch <clemens@ladisch.de> wrote:
> Andy Lutomirski wrote:
>> The HPET is so amazingly slow that this is barely a win.
>
> What happens on CPUs where the TSC cannot be used for the clock?

vclock_gettime, etc will fall back to using syscalls, just like they
would on systems using the PIT timer.

>
>> it scares me a tiny bit to map a piece of crappy hardware where every
>> userspace program can poke at it (even if said poking is read-only).
>> Let's just remove it.
>
> So this mapping is a backdoor to bypass the restrictions on /dev/hpet? ;-)
>

Yes, except that it's read-only.

At some point, someone will probably want to run code in a sandbox
that can't tell time at all. That will be messy, but this is a decent
first little step.

--Andy


\
 
 \ /
  Last update: 2014-02-01 18:41    [W:0.054 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site