]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ac1723a43643eefa55d7952418ae42421e27817
tree8bbd2dce248814dd8711ded32a19a8e982dba1ae
parent3625eaeebb6125414de3176f076b541434af6dfe
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