On Wed, May 22, 2024 at 10:11:04PM +0100, Salil Mehta via wrote: > Date: Wed, 22 May 2024 22:11:04 +0100 > From: Salil Mehta via <qemu-devel@nongnu.org> > Subject: [PATCH V11 1/8] accel/kvm: Extract common KVM vCPU {creation, > parking} code > X-Mailer: git-send-email 2.34.1 > > KVM vCPU creation is done once during the vCPU realization when Qemu vCPU > thread > is spawned. This is common to all the architectures as of now. > > Hot-unplug of vCPU results in destruction of the vCPU object in QOM but the > corresponding KVM vCPU object in the Host KVM is not destroyed as KVM doesn't > support vCPU removal. Therefore, its representative KVM vCPU object/context in > Qemu is parked. > > Refactor architecture common logic so that some APIs could be reused by vCPU > Hotplug code of some architectures likes ARM, Loongson etc. Update new/old > APIs > with trace events. No functional change is intended here. > > Signed-off-by: Salil Mehta <salil.me...@huawei.com> > Reviewed-by: Gavin Shan <gs...@redhat.com> > Tested-by: Vishnu Pajjuri <vis...@os.amperecomputing.com> > Reviewed-by: Jonathan Cameron <jonathan.came...@huawei.com> > Tested-by: Xianglai Li <lixiang...@loongson.cn> > Tested-by: Miguel Luis <miguel.l...@oracle.com> > Reviewed-by: Shaoqin Huang <shahu...@redhat.com> > Reviewed-by: Vishnu Pajjuri <vis...@os.amperecomputing.com> > Reviewed-by: Nicholas Piggin <npig...@gmail.com> > --- > accel/kvm/kvm-all.c | 95 ++++++++++++++++++++++++++++-------------- > accel/kvm/kvm-cpus.h | 23 ++++++++++ > accel/kvm/trace-events | 5 ++- > 3 files changed, 90 insertions(+), 33 deletions(-) >
Reviewed-by: Zhao Liu <zhao1....@intel.com>