accel/kvm: Introduce kvm_create_and_park_vcpu() helper
authorHarsh Prateek Bora <harshpb@linux.ibm.com>
Tue, 18 Jun 2024 08:23:52 +0000 (13:53 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:21:06 +0000 (09:21 +1000)
commitc6a3d7bc9e3acf2431ac23ae6dbeb28aa92f873c
treeb562f275c9a7d3fa3e3daf3784219917fae21116
parent785c8637f9d2362a8addf4ded853d975955a9d6b
accel/kvm: Introduce kvm_create_and_park_vcpu() helper

There are distinct helpers for creating and parking a KVM vCPU.
However, there can be cases where a platform needs to create and
immediately park the vCPU during early stages of vcpu init which
can later be reused when vcpu thread gets initialized. This would
help detect failures with kvm_create_vcpu at an early stage.

Suggested-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
accel/kvm/kvm-all.c
include/sysemu/kvm.h