qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: qemu-devel@nongnu.org
Cc: "Eduardo Habkost" <ehabkost@redhat.com>,
	"Alexander Graf" <agraf@suse.de>,
	"Anthony Liguori" <anthony@codemonkey.ws>,
	"Igor Mammedov" <imammedo@redhat.com>,
	"Andreas Färber" <afaerber@suse.de>,
	"Aurélien Jarno" <aurelien@aurel32.net>
Subject: [Qemu-devel] [PATCH qom-cpu 0/7] QOM CPUState, part 7: CPU_COMMON for topology
Date: Wed, 19 Dec 2012 16:31:04 +0100	[thread overview]
Message-ID: <1355931071-22100-1-git-send-email-afaerber@suse.de> (raw)

Hello,

This series moves more fields from CPU_COMMON / CPU*State to CPUState,
allowing access from target-independent code. It is an intermediate step in
the effort to untangle CPUArchState and CPUState; cores and threads are
intended to be refactored as QOM composition (socket has-a core has-a thread)
later on. Note that in addition to x86 this affects ppc and mips.

Available here, based on pending qom-cpu pull:
https://github.com/afaerber/qemu-cpu/commits/qom-cpu-7.v1
git://github.com/afaerber/qemu-cpu.git qom-cpu-7.v1

Known conflicts:
* my ppc CPU subclasses patch:
  - changes [kvm]ppc_fixup_cpu() signatures,
  - drops kvmppc_host_cpu_def(),
  - splits cpu_ppc_register_internal() into initfn and realizefn.

Regards,
Andreas

Cc: Anthony Liguori <anthony@codemonkey.ws>
Cc: Alexander Graf <agraf@suse.de>
Cc: Aurélien Jarno <aurelien@aurel32.net>

Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>

Andreas Färber (7):
  cpu: Move nr_{cores,threads} fields to CPUState
  target-mips: Clean up mips_cpu_map_tc() documentation
  cpu: Move numa_node field to CPUState
  cpu: Move cpu_index field to CPUState
  kvm: Pass CPUState to kvm_init_vcpu()
  xen: Simplify halting of first CPU
  exec: Return CPUState from qemu_get_cpu()

 cpu-all.h                   |    1 -
 cpu-defs.h                  |    4 ----
 cpus.c                      |   24 +++++++++++++++---------
 exec.c                      |   19 +++++++++----------
 gdbstub.c                   |    3 ++-
 gdbstub.h                   |    3 ++-
 hw/alpha_typhoon.c          |    4 +++-
 hw/arm_gic.c                |    3 ++-
 hw/arm_mptimer.c            |    8 +++++---
 hw/mips_malta.c             |    9 ++++++---
 hw/openpic.c                |    3 ++-
 hw/ppc/e500.c               |   17 +++++++++++------
 hw/ppce500_spin.c           |    8 +++++---
 hw/pxa.h                    |    2 +-
 hw/pxa2xx.c                 |    4 ++--
 hw/pxa2xx_gpio.c            |    7 ++++---
 hw/spapr.c                  |   13 ++++++++-----
 hw/spapr_hcall.c            |    4 +++-
 hw/spapr_rtas.c             |    8 +++++---
 hw/xics.c                   |   22 ++++++++++++----------
 include/qemu/cpu.h          |   19 +++++++++++++++++++
 kvm-all.c                   |    5 ++---
 kvm-stub.c                  |    2 +-
 kvm.h                       |    5 +++--
 monitor.c                   |   19 +++++++++++++------
 target-alpha/translate.c    |    2 +-
 target-arm/cpu.c            |    2 +-
 target-arm/helper.c         |    3 ++-
 target-cris/cpu.c           |    2 +-
 target-i386/cpu.c           |   25 +++++++++++++------------
 target-i386/helper.c        |   15 ++++++++-------
 target-i386/misc_helper.c   |    5 ++++-
 target-lm32/cpu.c           |    2 +-
 target-m68k/cpu.c           |    2 +-
 target-microblaze/cpu.c     |    2 +-
 target-mips/cpu.c           |    8 ++++++++
 target-mips/op_helper.c     |   33 ++++++++++++++++++++++-----------
 target-mips/translate.c     |   17 +++++++----------
 target-openrisc/cpu.c       |    2 +-
 target-ppc/kvm.c            |   12 +++++++-----
 target-ppc/kvm_ppc.h        |    4 ++--
 target-ppc/translate_init.c |   14 +++++++++-----
 target-s390x/cpu.c          |    2 +-
 target-sh4/cpu.c            |    2 +-
 target-sparc/cpu.c          |    2 +-
 xen-all.c                   |    4 +---
 46 Dateien geändert, 228 Zeilen hinzugefügt(+), 148 Zeilen entfernt(-)

-- 
1.7.10.4

             reply	other threads:[~2012-12-19 15:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-19 15:31 Andreas Färber [this message]
2012-12-19 15:31 ` [Qemu-devel] [PATCH qom-cpu 1/7] cpu: Move nr_{cores, threads} fields to CPUState Andreas Färber
2013-01-07 18:21   ` Igor Mammedov
2012-12-19 15:31 ` [Qemu-devel] [PATCH qom-cpu 2/7] target-mips: Clean up mips_cpu_map_tc() documentation Andreas Färber
2013-01-08  5:43   ` Eric Johnson
2012-12-19 15:31 ` [Qemu-devel] [PATCH qom-cpu 3/7] cpu: Move numa_node field to CPUState Andreas Färber
2012-12-19 15:31 ` [Qemu-devel] [PATCH qom-cpu 4/7] cpu: Move cpu_index " Andreas Färber
2012-12-19 15:31 ` [Qemu-devel] [PATCH qom-cpu 5/7] kvm: Pass CPUState to kvm_init_vcpu() Andreas Färber
2012-12-19 15:31 ` [Qemu-devel] [PATCH qom-cpu 6/7] xen: Simplify halting of first CPU Andreas Färber
2012-12-19 15:31 ` [Qemu-devel] [PATCH qom-cpu 7/7] exec: Return CPUState from qemu_get_cpu() Andreas Färber
2013-01-07 17:18 ` [Qemu-devel] [PATCH qom-cpu 0/7] QOM CPUState, part 7: CPU_COMMON for topology Andreas Färber
2013-01-08 21:25   ` Eduardo Habkost
2013-01-11  1:04     ` Andreas Färber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1355931071-22100-1-git-send-email-afaerber@suse.de \
    --to=afaerber@suse.de \
    --cc=agraf@suse.de \
    --cc=anthony@codemonkey.ws \
    --cc=aurelien@aurel32.net \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).