KVM: Use common function for VCPU lookup by id
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Thu, 5 Nov 2015 08:03:50 +0000 (09:03 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Nov 2015 11:47:04 +0000 (12:47 +0100)
commite09fefdeeb517ff653516dea8a882ce001e99237
treeb9cdb7b637b93779ea96f05cfc56fdead30f9b25
parentbb11c6c96544737aede6a2eb92e5c6bc8b46534b
KVM: Use common function for VCPU lookup by id

Let's reuse the new common function for VPCU lookup by id.

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
[split out the new function into a separate patch]
arch/powerpc/kvm/book3s_hv.c
arch/s390/kvm/diag.c
virt/kvm/kvm_main.c