Until the uncomparably harder task of real VCPU hotplug / hot-unplug is completed, here's a small guest agent series that imitates the same thing through the sysfs of the Linux guest. We've heard that people migrating from another VMM might be transitorily interested in this.
Laszlo Ersek (3): qga: introduce guest-get-vcpus / guest-set-vcpus with stubs qga: implement qmp_guest_get_vcpus() for Linux with sysfs qga: implement qmp_guest_set_vcpus() for Linux with sysfs qga/qapi-schema.json | 50 +++++++++++++++++ qga/commands-posix.c | 149 ++++++++++++++++++++++++++++++++++++++++++++++++++ qga/commands-win32.c | 11 ++++ 3 files changed, 210 insertions(+), 0 deletions(-)