From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYWH0-0002yS-Nw for qemu-devel@nongnu.org; Tue, 22 Oct 2013 03:21:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYWGt-00014r-Qe for qemu-devel@nongnu.org; Tue, 22 Oct 2013 03:21:02 -0400 Received: from [222.73.24.84] (port=32310 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYWGt-00011H-Cu for qemu-devel@nongnu.org; Tue, 22 Oct 2013 03:20:55 -0400 From: Chen Fan Date: Tue, 22 Oct 2013 15:05:24 +0800 Message-Id: Subject: [Qemu-devel] [PATCH v1 0/3] refactor x86 apic to QOM typing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= In order to implement 'cpu-del' in the furture. at first, needing to refactor x86 apic codes. this converts apic/kvm/xen 's init() callbacks to realize() and dropping local_apics[] from file hw/intc/apic.c. moving apic_state field from CPUX86State to X86CPU. Chen Fan (3): Change apic/kvm/xen to use QOM typing Using CPU_FOREACH() instead of scanning local_apics x86: move apic_state field from CPUX86State to X86CPU cpu-exec.c | 2 +- cpus.c | 5 +-- hw/cpu/icc_bus.c | 17 --------- hw/i386/kvm/apic.c | 10 ++++- hw/i386/kvmvapic.c | 8 ++-- hw/i386/pc.c | 17 ++++----- hw/intc/apic.c | 84 ++++++++++++++++++++--------------------- hw/intc/apic_common.c | 17 ++------- hw/xen/xen_apic.c | 11 +++++- include/hw/cpu/icc_bus.h | 1 - include/hw/i386/apic_internal.h | 5 +-- target-i386/cpu-qom.h | 4 ++ target-i386/cpu.c | 22 +++++------ target-i386/cpu.h | 4 -- target-i386/helper.c | 9 ++--- target-i386/kvm.c | 23 +++++------ target-i386/misc_helper.c | 8 ++-- 17 files changed, 109 insertions(+), 138 deletions(-) -- 1.8.1.4