diff options
author | Roland McGrath <[email protected]> | 2008-04-03 14:18:55 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-04-03 15:42:43 -0700 |
commit | 4ba51fd75cc3789be83f0d6f878dabbb0cb19bca (patch) | |
tree | 7e1ab105022a571facd81b7fd8040b96e58d73af /lib/debugobjects.c | |
parent | 2eccd6f65a0d4844318b1e30755cafd063833908 (diff) |
x86 ptrace: avoid unnecessary wrmsr
This avoids using wrmsr on MSR_IA32_DEBUGCTLMSR when it's not needed.
No wrmsr ever needs to be done if noone has ever used block stepping.
Without this change, using ptrace on 2.6.25 on an x86 KVM guest
will tickle KVM's missing support for the MSR and crash the guest
kernel. Though host KVM is the buggy one, this makes for a regression
in the guest behavior from 2.6.24->2.6.25 that we can easily avoid.
I also corrected some bad whitespace.
Signed-off-by: Roland McGrath <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions