OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
463bfee
)
KVM: x86: fix incorrect comparison in trace event
author
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 13 Feb 2020 17:24:48 +0000
(18:24 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 20 Feb 2020 17:13:44 +0000
(18:13 +0100)
The "u" field in the event has three states, -1/0/1. Using u8 however means that
comparison with -1 will always fail, so change to signed char.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmutrace.h
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/mmutrace.h
b/arch/x86/kvm/mmutrace.h
index
3c6522b
..
ffcd96f
100644
(file)
--- a/
arch/x86/kvm/mmutrace.h
+++ b/
arch/x86/kvm/mmutrace.h
@@
-339,7
+339,7
@@
TRACE_EVENT(
/* These depend on page entry type, so compute them now. */
__field(bool, r)
__field(bool, x)
- __field(
u8
, u)
+ __field(
signed char
, u)
),
TP_fast_assign(