lkml.org 
[lkml]   [2012]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [GIT PULL] perf changes for v3.8
Btw, I do *not* think that you should necessariyl default to 'H' for
host-only mode.

The way it should work is that ":pp", ":ppH" and ":ppV" are all different.

- "cycles:ppH" means: I want precise cycles only for the host case

- "cycles:ppV" means: I want precise cycles, and I want the VM too

This would result in EOPNOTSUPP for the case we know is buggy (but
presumably work on some other CPUs that don't have the problem)

- "cycles:pp" is "I want precise cycles, and I don't care about virtualization"

This would do whatever works. So it would basically become
host-only, but if you don't want precise cycles (so no ":pp") then
whatever our old behavior was (presumably "profile the virtual machine
too") would be what happens.

That sounds like (a) the interface that people want and (b) entirely
backwards-compatible for all cases that can matter (where "oops, I
crashed the VM" case does not matter).

Linus


\
 
 \ /
  Last update: 2012-12-13 18:21    [W:0.109 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site