Skip to content

Commits

Permalink
qom-cpu-10.v3
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Jun 26, 2013

  1. target-i386: Don't overuse CPUArchState

    Use CPUX86State instead in dump support code.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    5ae7131 View commit details
    Browse the repository at this point in the history
  2. target-s390x: Change handle_{hypercall,diag}() argument to S390CPU

    This allows to get rid of the last remaining ENV_GET_CPU() in
    target-s390x/ by using CPU() cast directly on the argument.
    
    Cc: Jason J. Herne <jjherne@us.ibm.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    f5bfff9 View commit details
    Browse the repository at this point in the history
  3. target-s390x: Don't overuse ENV_GET_CPU()

    Commit 3474b67 (Utilize selective
    runtime reg sync for hot code paths) introduced two uses of
    ENV_GET_CPU() inside target-s390x/ KVM code. In one case we can use a
    direct CPU() cast instead.
    
    Cc: Jason J. Herne <jjherne@us.ibm.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    63d33b4 View commit details
    Browse the repository at this point in the history
  4. target-ppc: Don't overuse ENV_GET_CPU()

    Commit b632a14 (target-ppc: QOM method
    dispatch for MMU fault handling) introduced a use of ENV_GET_CPU()
    inside target-ppc/ code. Use ppc_env_get_cpu() instead.
    
    Purely cosmetic, non-functional change to aid in locating and removing
    ENV_GET_CPU() usages.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    76fc4e5 View commit details
    Browse the repository at this point in the history
  5. timer/arm_mptimer: Build arm_mptimer only once

    Since current_cpu is CPUState it no longer depends on CPUArchState.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    a0c65c6 View commit details
    Browse the repository at this point in the history
  6. intc/openpic: Build openpic only once

    Since current_cpu is CPUState it no longer depends on CPUPPCState.
    
    Move ppce500_set_mpic_proxy() to a new hw/ppc/ppc_e500.h because
    hw/ppc/ppc.h is too heavily using CPUPPCState and PowerPCCPU.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    ec864cf View commit details
    Browse the repository at this point in the history
  7. intc/arm_gic: Build arm_gic only once

    Since current_cpu is CPUState it no longer needs CPUArchState.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    d3259d3 View commit details
    Browse the repository at this point in the history
  8. bsd-user: Change thread_env to CPUState

    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    d15f70f View commit details
    Browse the repository at this point in the history
  9. linux-user: Change thread_env to CPUState

    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    5942c29 View commit details
    Browse the repository at this point in the history
  10. cpu: Make first_cpu and next_cpu CPUState

    Move next_cpu from CPU_COMMON to CPUState.
    Move first_cpu variable to qom/cpu.h.
    
    gdbstub needs to use CPUState::env_ptr for now.
    cpu_copy() no longer needs to save and restore cpu_next.
    
    Acked-by: Paolo Bonzini <pbonzini@redhat.com>
    [AF: Rebased, simplified cpu_copy()]
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    18f6ee6 View commit details
    Browse the repository at this point in the history
  11. linux-user: Clean up do_syscall() Coding Style for TARGET_NR_exit

    In particular fix 6-/10-char indentation.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    b972b33 View commit details
    Browse the repository at this point in the history
  12. kvm: Change kvm_remove_all_breakpoints() argument to CPUState

    Acked-by: Paolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    a6664d0 View commit details
    Browse the repository at this point in the history
  13. cpu: Replace cpu_single_env with CPUState current_cpu

    Move it to qom/cpu.h.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    93be8d5 View commit details
    Browse the repository at this point in the history
  14. kvm: Free current_cpu identifier

    Since CPU loops are done as last step in kvm_{insert,remove}_breakpoint()
    and kvm_remove_all_breakpoints(), we do not need to distinguish between
    invoking CPU and iterated CPUs and can thereby free the identifier for
    use as a global variable.
    
    Acked-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    87ffc6d View commit details
    Browse the repository at this point in the history
  15. cpu: Turn cpu_unassigned_access() into a CPUState hook

    Use it for all targets, but be careful not to pass invalid CPUState.
    cpu_single_env can be NULL, e.g. on Xen.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    b7b4af8 View commit details
    Browse the repository at this point in the history
  16. hwaddr: Make hwaddr type usable beyond softmmu

    While not normally needed for *-user, it can safely be used there since
    always based on uint64_t, to avoid ifdeffery.
    
    To avoid accidental uses, move the guards from exec/hwaddr.h to its
    inclusion sites.  No need for them in include/hw/.
    
    Prepares for hwaddr use in qom/cpu.h.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    f34c7e0 View commit details
    Browse the repository at this point in the history
  17. cpu: Change qemu_init_vcpu() argument to CPUState

    This allows to move the call into CPUState's realizefn.
    Therefore move the stub into libqemustub.a.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    019f96b View commit details
    Browse the repository at this point in the history
  18. cpus: Change qemu_dummy_start_vcpu() argument to CPUState

    Pass it to qemu_dummy_cpu_thread_fn().
    Use CPUState::env_ptr for cpu_single_env.
    
    Prepares for changing qemu_init_vcpu() argument to CPUState.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    682205f View commit details
    Browse the repository at this point in the history
  19. cpus: Change qemu_kvm_start_vcpu() argument to CPUState

    Pass it on to qemu_kvm_cpu_thread_fn().
    
    Prepares for changing qemu_init_vcpu() argument to CPUState.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    b597f12 View commit details
    Browse the repository at this point in the history
  20. cpus: Change cpu_handle_guest_debug() argument to CPUState

    CPUArchState is no longer needed.
    
    Prepares for changing qemu_kvm_cpu_thread_fn() opaque to CPUState.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    c9d7072 View commit details
    Browse the repository at this point in the history
  21. gdbstub: Set gdb_set_stop_cpu() argument to CPUState

    Use CPUState::env_ptr for now.
    
    Prepares for changing cpu_handle_guest_debug() argument to CPUState.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    b040b8e View commit details
    Browse the repository at this point in the history
  22. kvm: Change kvm_cpu_exec() argument to CPUState

    It no longer uses CPUArchState.
    
    Prepares for changing qemu_kvm_cpu_thread_fn() opaque to CPUState.
    
    Acked-by: Paolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    c87837d View commit details
    Browse the repository at this point in the history
  23. kvm: Change kvm_handle_internal_error() argument to CPUState

    It no longer uses CPUArchState.
    
    Prepares for changing kvm_cpu_exec() argument to CPUState.
    
    Acked-by: Paolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    ff7c395 View commit details
    Browse the repository at this point in the history
  24. cpu: Turn cpu_dump_{state,statistics}() into CPUState hooks

    Make cpustats monitor command available unconditionally.
    
    Prepares for changing kvm_handle_internal_error() and kvm_cpu_exec()
    arguments to CPUState.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    11d29a3 View commit details
    Browse the repository at this point in the history
  25. cpus: Change qemu_kvm_init_cpu_signals() argument to CPUState

    CPUArchState is no longer needed.
    
    Prepares for changing qemu_kvm_cpu_thread_fn() opaque to CPUState.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    4b27589 View commit details
    Browse the repository at this point in the history
  26. kvm: Change kvm_set_signal_mask() argument to CPUState

    CPUArchState is no longer needed.
    
    Prepares for changing qemu_kvm_init_cpu_signals() argument to CPUState.
    
    Acked-by: Paolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    df64c0c View commit details
    Browse the repository at this point in the history
  27. cpus: Change qemu_kvm_wait_io_event() argument to CPUState

    It no longer uses CPUArchState.
    
    Prepares for changing qemu_kvm_cpu_thread_fn() opaque to CPUState.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    739cc81 View commit details
    Browse the repository at this point in the history
  28. cpus: Change cpu_thread_is_idle() argument to CPUState

    It no longer needs CPUArchState.
    
    Prepares for changing all_cpu_threads_idle() CPU loop to CPUState and
    needed for changing qemu_kvm_wait_io_event() argument to CPUState.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    18cf4b4 View commit details
    Browse the repository at this point in the history
  29. cpu: Change cpu_exit() argument to CPUState

    It no longer depends on CPUArchState, so move it to qom/cpu.c.
    
    Prepares for changing GdbState::c_cpu to CPUState.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    5a7a86f View commit details
    Browse the repository at this point in the history
  30. kvm: Change cpu_synchronize_state() argument to CPUState

    Change Monitor::mon_cpu to CPUState as well.
    In cpu_synchronize_all_states() use qemu_for_each_cpu() now.
    
    Reviewed-by: liguang <lig.fnst@cn.fujitsu.com>
    Acked-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    7aa2022 View commit details
    Browse the repository at this point in the history
  31. kvm: Change kvm_cpu_synchronize_state() argument to CPUState

    It no longer relies on CPUArchState since 20d695a.
    
    Reviewed-by: liguang <lig.fnst@cn.fujitsu.com>
    Acked-by: Paolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    ef3e173 View commit details
    Browse the repository at this point in the history
  32. gdbstub: Simplify find_cpu()

    Use qemu_get_cpu() and CPUState::env_ptr.
    
    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    7a99421 View commit details
    Browse the repository at this point in the history
  33. cpu: Guard cpu_{save,load}() definitions

    A few targets already managed to implement cpu_save() and cpu_load()
    without defining CPU_SAVE_VERSION that causes them to be registered.
    
    Guard the prototypes with CPU_SAVE_VERSION to avoid this happening again
    until all targets are converted to VMState (or QIDL).
    
    Reviewed-by: Juan Quintela <quintela@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    68c71f5 View commit details
    Browse the repository at this point in the history
  34. target-openrisc: Register VMStateDescription for OpenRISCCPU

    Since commit e67db06 (target-or32: Add
    target stubs and QOM cpu) a VMStateDescription existed, but
    CPU_SAVE_VERSION was not set, so it was never registered.
    
    Drop cpu_{save,load}() and register VMStateDescription via DeviceState.
    Use a version_id of 1 and specify minimum versions as well.
    
    Reviewed-by: Juan Quintela <quintela@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    b93c58f View commit details
    Browse the repository at this point in the history
  35. target-alpha: Register VMStateDescription for AlphaCPU

    Commit b758aca (target-alpha: Enable
    the alpha-softmmu target.) introduced cpu_{save,load}() functions but
    didn't define CPU_SAVE_VERSION, so they were never registered.
    
    Drop cpu_{save,load}() and register the VMStateDescription via DeviceClass.
    This operates on the AlphaCPU object instead of CPUAlphaState.
    
    Reviewed-by: Juan Quintela <quintela@redhat.com>
    Acked-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    afaerber committed Jun 26, 2013
    Copy the full SHA
    0e5f24f View commit details
    Browse the repository at this point in the history
Older