projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07700a9
)
KVM: use correct tlbs dirty type in cmpxchg
author
Alex Shi
<alex.shi@intel.com>
Sun, 4 Mar 2012 05:13:38 +0000
(13:13 +0800)
committer
Avi Kivity
<avi@redhat.com>
Thu, 8 Mar 2012 12:11:44 +0000
(14:11 +0200)
Using 'int' type is not suitable for a 'long' object. So, correct it.
Signed-off-by: Alex Shi <alex.shi@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/kvm_main.c
patch
|
blob
|
history
diff --git
a/virt/kvm/kvm_main.c
b/virt/kvm/kvm_main.c
index
94e148e
..
42b7393
100644
(file)
--- a/
virt/kvm/kvm_main.c
+++ b/
virt/kvm/kvm_main.c
@@
-203,7
+203,7
@@
static bool make_all_cpus_request(struct kvm *kvm, unsigned int req)
void kvm_flush_remote_tlbs(struct kvm *kvm)
{
-
int
dirty_count = kvm->tlbs_dirty;
+
long
dirty_count = kvm->tlbs_dirty;
smp_mb();
if (make_all_cpus_request(kvm, KVM_REQ_TLB_FLUSH))