From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0TA3-0008Ss-JN for qemu-devel@nongnu.org; Fri, 27 Jun 2014 06:13:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0T9y-0002HP-Gv for qemu-devel@nongnu.org; Fri, 27 Jun 2014 06:13:39 -0400 Received: from [59.151.112.132] (port=21287 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0T9y-0002EB-5J for qemu-devel@nongnu.org; Fri, 27 Jun 2014 06:13:34 -0400 Message-ID: <53AD4104.80701@cn.fujitsu.com> Date: Fri, 27 Jun 2014 18:01:40 +0800 From: Gu Zheng MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [RFC PATCH 0/3] cpu: add device_add foo-x86_64-cpu support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Eduardo Habkost , tangchen , Yasuaki Ishimatsu , ChenFan , Igor Mammedov , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= This series is based on the previous patchset from Chen Fan: https://lists.nongnu.org/archive/html/qemu-devel/2014-05/msg02360.html This patches try to make cpu hotplug with device_add, and make "-device foo-x86_64-cpu" available=EF=BC=8Calso we can set apic-id property with command line, if without setting apic-id property, we offer the first unoccupied apic id as the default new apic id. When hotplug cpu with device_add, additional check of APIC ID will be done after cpu object initialization which was different from 'cpu_add' command that check 'ids' at the beginning. Chen Fan (2): cpu: introduce CpuTopoInfo structure for argument simplification cpu: add device_add foo-x86_64-cpu support Gu Zheng (1): qom/cpu: move register_vmstate to common CPUClass.realizefn exec.c | 32 ++++++++++------- hw/intc/apic_common.c | 3 +- include/hw/i386/apic_internal.h | 3 +- include/qom/cpu.h | 3 ++ qdev-monitor.c | 1 + qom/cpu.c | 2 + target-i386/cpu.c | 76 +++++++++++++++++++++++++++++++++++= +-- target-i386/topology.h | 51 ++++++++++++++++++-------- 8 files changed, 135 insertions(+), 36 deletions(-) --=20 1.7.7