lkml.org 
[lkml]   [2017]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] turbostat: Running on virtual machine is not supported
On Tue, 25 Jul 2017, Prarit Bhargava wrote:
> A common way of determining if the system is a virtual machine is to
> search /proc/cpuinfo flags entry for "hypervisor". turbostat must output
> a proper error message when found.

Maybe you could output that message only if it fails to both use
/dev/msr and perf *and* it is under a virtual machine? That would have
better forward compatibility, maybe someday /dev/msr or perf will work
inside a VM for what turbostat needs...

--
Henrique Holschuh

\
 
 \ /
  Last update: 2017-07-25 18:00    [W:0.086 / U:4.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site