aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorJoerg Roedel <[email protected]>2012-02-29 14:57:32 +0100
committerIngo Molnar <[email protected]>2012-03-02 12:16:39 +0100
commit1018faa6cf23b256bf25919ef203cd7c129f06f2 (patch)
tree16f8f223062c41e29431edfa71e66832101dee4e /net/lapb/lapb_timer.c
parent5d85d97c9f6973ba854f35a2d5e80fe68272143e (diff)
perf/x86/kvm: Fix Host-Only/Guest-Only counting with SVM disabled
It turned out that a performance counter on AMD does not count at all when the GO or HO bit is set in the control register and SVM is disabled in EFER. This patch works around this issue by masking out the HO bit in the performance counter control register when SVM is not enabled. The GO bit is not touched because it is only set when the user wants to count in guest-mode only. So when SVM is disabled the counter should not run at all and the not-counting is the intended behaviour. Signed-off-by: Joerg Roedel <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Avi Kivity <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: David Ahern <[email protected]> Cc: Gleb Natapov <[email protected]> Cc: Robert Richter <[email protected]> Cc: [email protected] # v3.2 Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions