arm: enhance kvm_arm_create_scratch_host_vcpu
commit2f340e9c24e3af17ad376d27a41830387999c285
authorPeter Xu <peterx@redhat.com>
Wed, 30 Mar 2016 16:27:24 +0000 (30 17:27 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 30 Mar 2016 16:27:24 +0000 (30 17:27 +0100)
treeda78ffe1ed086cdaa07b8ead449be8bc6e356a2d
parentae50a7702c871638c5b650f501325031dfc511cb
arm: enhance kvm_arm_create_scratch_host_vcpu

Support passing NULL for the first parameter (with the same effect
as passing an empty array) and for the third parameter (meaning
that we should not attempt to init the vcpu).

Signed-off-by: Peter Xu <peterx@redhat.com>
Acked-by: Sergey Fedorov <serge.fdrv@gmail.com>
Message-id: 1458788142-17509-3-git-send-email-peterx@redhat.com
[PMM: tweaked commit message, comment]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/kvm.c
target-arm/kvm_arm.h