]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: mark memory slots as rcu
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 6 Jul 2017 14:17:14 +0000 (16:17 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 7 Jul 2017 13:24:17 +0000 (15:24 +0200)
commitd18b14fa331589ebe6cbc1a20bee19ade9eda5b9
treefae2662f53c9922277dfd6772a6018ac533e0a36
parent67b864de7b015f39adf547b864ac7ddcc53fa095
KVM: mark memory slots as rcu

we access the memslots array via srcu. Mark it as such and
use the right access functions also for the freeing of
memory slots.

Found by sparse:
./include/linux/kvm_host.h:565:16: 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