From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDMQH-00086I-Tg for qemu-devel@nongnu.org; Wed, 06 Mar 2013 17:02:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDMQF-0005Qp-9T for qemu-devel@nongnu.org; Wed, 06 Mar 2013 17:02:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDMQF-0005Ql-2M for qemu-devel@nongnu.org; Wed, 06 Mar 2013 17:02:51 -0500 From: Laszlo Ersek Date: Wed, 6 Mar 2013 22:59:28 +0100 Message-Id: <1362607171-24668-1-git-send-email-lersek@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/3] qga/Linux: online/offline/query VCPUs via guest sysfs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mdroth@linux.vnet.ibm.com, eblake@redhat.com, qemu-devel@nongnu.org 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. In v2: addressing the reviews of Eric and Michael (many thanks). - Deal with non-offline-able VCPUs, introducing GuestLogicalProcessor.can_offline, - POSIX write()-style retvals in guest-set-vcpus, - move implementation into preexistent __linux__ section, keep standalone stubs, - massage sysfs files with interfaces. (v2 is practically a rewrite; the interdiff doesn't appear particularly helpful.) 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 | 72 +++++++++++++++++++++ qga/commands-posix.c | 172 ++++++++++++++++++++++++++++++++++++++++++++++++++ qga/commands-win32.c | 12 ++++ 3 files changed, 256 insertions(+), 0 deletions(-)