qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v1 0/3] refactor x86 apic to QOM typing


From: Chen Fan
Subject: [Qemu-devel] [PATCH v1 0/3] refactor x86 apic to QOM typing
Date: Tue, 22 Oct 2013 15:05:24 +0800

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]