Skip to content

target-i386: move cpu reset and tcg intialization inside CPU object

Igor Mammedov qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5target-i386: drop usage of prev_debug_excp_handlertarget-i386/helper.c+1 -62 replies
2/5target-i386: move tcg initialization into x86_cpu_initfn()target-i386/cpu.c target-i386/cpu.h target-i386/helper.c+12 -101 reply
3/5target-i386: call x86_cpu_realize() after APIC is initialized.hw/pc.c target-i386/helper.c+1 -211 replies
4/5target-i386: move cpu halted decision into x86_cpu_resethw/apic.h hw/apic_common.c hw/pc.c +3 more+27 -190 replies
5/5target-i386: move cpu_reset and reset callback to cpu.chw/pc.c target-i386/cpu.c+15 -81 reply

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchPeter MaydellAndreas Färber
1/5
2/5R-b
3/5
4/5spotted-by
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/5] target-i386: move cpu reset and tcg intialization inside CPU object

There is no much sence in holding back rather independed cpu_reset and tcg init patches from:
"[PATCH qom-next v3 0/12] target-i386: re-factor CPU creation/initialization to QOM"
http://lists.gnu.org/archive/html/qemu-devel/2012-05/msg04077.html

Reposting ammended and rebased patches.

git tree for testing:
https://github.com/imammedo/qemu/tree/x86cpu_qom_reset_tcg

Compile & Run tested:
target-i386: tcg and kvm mode
i386-linux-user: running of /bin/ls

Igor Mammedov (5):
target-i386: move reset callback to cpu.c and call cpu_reset() in x86_cpu_realize()
target-i386: move cpu halted decision into x86_cpu_reset
target-i386: call x86_cpu_realize() only after APIC is initialized.
target-i386: move tcg initialization into x86_cpu_initfn()
target-i386: drop usage of prev_debug_excp_handler

 hw/apic.h            |    2 +-
 hw/apic_common.c     |   20 ++++++++++++++------
 hw/pc.c              |   10 +---------
 target-i386/cpu.c    |   19 +++++++++++++++++++
 target-i386/cpu.h    |    1 +
 target-i386/helper.c |   19 +------------------
 target-i386/kvm.c    |    5 +++--
 7 files changed, 40 insertions(+), 36 deletions(-)