KVM: mark vcpu->pid pointer as rcu protected
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 6 Jul 2017 12:44:28 +0000 (14:44 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 7 Jul 2017 11:00:19 +0000 (13:00 +0200)
commit0e4524a5d341e719e8ee9ee7db5d58e2c5a4c10e
tree8bbd2dce248814dd8711ded32a19a8e982dba1ae
parent1372324b328cd5dabaef5e345e37ad48c63df2a9
KVM: mark vcpu->pid pointer as rcu protected

We do use rcu to protect the pid pointer. Mark it as such and
adopt all code to use the proper access methods.

This was detected by sparse.
"virt/kvm/kvm_main.c:2248:15: error: incompatible types in comparison
expression (different address spaces)"

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c