Permalink
Switch branches/tags
Commits on Dec 19, 2012
  1. exec: Return CPUState from qemu_get_cpu()

    afaerber committed Dec 17, 2012
    Move the declaration to qemu/cpu.h and add documentation.
    The implementation still depends on CPUArchState for CPU iteration.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  2. xen: Simplify halting of first CPU

    afaerber committed Dec 17, 2012
    Use the global first_cpu variable to halt the CPU rather than using a
    local first_cpu initialized from qemu_get_cpu(0).
    
    This will allow to change qemu_get_cpu() return type to CPUState
    despite use of the CPU_COMMON halted field in the reset handler.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  3. kvm: Pass CPUState to kvm_init_vcpu()

    afaerber committed Dec 17, 2012
    CPUArchState is no longer needed, and it thereby no longer depends on
    NEED_CPU_H.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  4. cpu: Move cpu_index field to CPUState

    afaerber committed Dec 17, 2012
    Note that target-alpha accesses this field from TCG, now using a
    negative offset. Therefore the field is placed last in CPUState.
    
    Pass PowerPCCPU to [kvm]ppc_fixup_cpu() to facilitate this change.
    
    Move common parts of mips cpu_state_reset() to mips_cpu_reset().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  5. cpu: Move numa_node field to CPUState

    afaerber committed Dec 17, 2012
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  6. target-mips: Clean up mips_cpu_map_tc() documentation

    afaerber committed Dec 17, 2012
    This function will be touched again soon, so a good understanding of env
    vs. other helps. Adopt gtk-doc style.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  7. cpu: Move nr_{cores,threads} fields to CPUState

    afaerber committed Dec 17, 2012
    Pass MIPSCPU to malta_mips_config(); avoid that for mips_cpu_map_tc()
    since callers only access MIPS Thread Contexts, inside TCG helpers.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  8. MAINTAINERS: Include X86CPU in CPU maintenance area

    afaerber committed Dec 9, 2012
    Document that the x86 CPU refactorings are going through the qom-cpu
    tree. This does not contradict the established practice that patches
    adding KVM features to the x86 CPU go through the KVM maintainers,
    it merely takes it out of target-i386 TCG's Odd Fixes status.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Cc: Marcello Tosatti <mtosatti@redhat.com>
  9. cpu: Move kvm_run into CPUState

    afaerber committed Dec 1, 2012
    Pass CPUState / {X86,S390}CPU to helper functions.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  10. cpu: Move kvm_state field into CPUState

    afaerber committed Dec 1, 2012
    Adapt some functions to take CPUState / {PowerPC,S390}CPU argument.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  11. ppc_booke: Pass PowerPCCPU to ppc_booke_timers_init()

    afaerber committed Dec 1, 2012
    Cleans up after passing PowerPCCPU to timer callbacks.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  12. ppc4xx_devs: Return PowerPCCPU from ppc4xx_init()

    afaerber committed Dec 1, 2012
    Prepares for passing PowerPCCPU to ppc_booke_timers_init().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  13. ppc_booke: Pass PowerPCCPU to {decr,fit,wdt} timer callbacks

    afaerber committed Dec 1, 2012
    Cleans up after passing PowerPCCPU to booke_update_irq().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  14. ppc: Pass PowerPCCPU to [h]decr timer callbacks

    afaerber committed Dec 1, 2012
    Cleans up after passing PowerPCCPU to [h]decr exception callbacks.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  15. ppc: Pass PowerPCCPU to [h]decr callbacks

    afaerber committed Dec 1, 2012
    Cleans up after passing PowerPCCPU to ppc_set_irq().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  16. ppc: Pass PowerPCCPU to ppc_set_irq()

    afaerber committed Dec 1, 2012
    Adapt static caller functions.
    
    This cleans up after passing PowerPCCPU to kvmppc_set_interrupt().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  17. kvm: Pass CPUState to kvm_vcpu_ioctl()

    afaerber committed Oct 31, 2012
    Adapt helper functions to pass X86CPU / PowerPCCPU / S390CPU.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  18. kvm: Pass CPUState to kvm_arch_*

    afaerber committed Oct 31, 2012
    Move kvm_vcpu_dirty field into CPUState to simplify things and change
    its type to bool while at it.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  19. cpu: Move kvm_fd into CPUState

    afaerber committed Oct 31, 2012
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  20. qdev-properties.c: Separate core from the code used only by qemu-syst…

    ehabkost authored and afaerber committed Dec 5, 2012
    …em-*
    
    This separates the qdev properties code in two parts:
     - qdev-properties.c, that contains most of the qdev properties code;
     - qdev-properties-system.c for code specific for qemu-system-*,
       containing:
       - Property types: drive, chr, netdev, vlan, that depend on code that
         won't be included on *-user
       - qemu_add_globals(), that depends on qemu-config.o.
    
    This change should help on two things:
     - Allowing DeviceState to be used by *-user without pulling
       dependencies that are specific for qemu-system-*;
     - Writing qdev unit tests without pulling too many dependencies.
    
    The copyright/license of qdev-properties.c isn't explicitly stated at
    the file, so add a simple copyright/license header pointing to the
    commit ID of the original file.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  21. qdev: Coding style fixes

    ehabkost authored and afaerber committed Dec 5, 2012
    Add missing braces and break lines larger than 80 chars.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  22. cpu: Introduce CPUListState struct

    afaerber committed Dec 16, 2012
    This generalizes {ARM,M68k,Alpha}CPUListState to avoid declaring it for
    each target. Place it in cpu-common.h to avoid circular dependencies.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
  23. target-alpha: Add support for -cpu ?

    afaerber committed Oct 15, 2012
    Implement alphabetical listing of CPU subclasses.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: Richard Henderson <rth@twiddle.net>
  24. target-alpha: Turn CPU definitions into subclasses

    afaerber committed Oct 15, 2012
    Make TYPE_ALPHA_CPU abstract and add types <name>-alpha-cpu.
    Use type inheritence, and turn "2*" models into aliases.
    
    Move cpu_alpha_init() to cpu.c and split out CPU realization.
    Default to creating type "ev67-alpha-cpu" as before.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: Richard Henderson <rth@twiddle.net>
  25. target-alpha: Avoid leaking the alarm timer over reset

    afaerber committed Oct 31, 2012
    Move the timer from CPUAlphaState to AlphaCPU to avoid the pointer being
    zero'ed once we implement reset. Would cause a segfault in
    sys_helper.c:helper_set_alarm().
    
    This also simplifies timer initialization in Typhoon.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: Richard Henderson <rth@twiddle.net>
  26. alpha: Pass AlphaCPU array to Typhoon

    afaerber committed Oct 16, 2012
    Also store it in TyphoonCchip.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: Richard Henderson <rth@twiddle.net>
  27. target-alpha: Let cpu_alpha_init() return AlphaCPU

    afaerber committed Oct 15, 2012
    Replace cpu_init() macro with inline function for backwards
    compatibility.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: Richard Henderson <rth@twiddle.net>
Commits on Dec 18, 2012
  1. Merge remote-tracking branch 'stefanha/trivial-patches' into staging

    Anthony Liguori
    Anthony Liguori committed Dec 18, 2012
    * stefanha/trivial-patches:
      configure: Earlier pkg-config probe
      vmmouse_reset(): remove minimal code duplication
      linux-user/syscall.c: remove wrong forward decl of setgroups()
      fix build error on ARM due to wrong glibc check
      gitignore: Add virtfs-proxy-helper
      arm_gic: Add cpu nr to Raised IRQ message
      zynq_slcr: Compile time warning fixes.
      pflash_cfi0x: Send debug messages to stderr
      pflash_cfi01: qemu_log_mask "unimplemented" msg
      net, hub: fix the indent in the comments
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  2. Merge remote-tracking branch 'amit/master' into staging

    Anthony Liguori
    Anthony Liguori committed Dec 18, 2012
    * amit/master:
      virtio-serial-bus: assert port is non-null in remove_port()
      virtio-serial-bus: send_control_msg() should not deal with cpkts
      virtio-serial: delete timer if active during exit
      virtio-serial: allocate post_load only at load-time
      virtio-serial: move active ports loading to separate function
      virtio-serial: use uint32_t to count ports
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  3. Merge remote-tracking branch 'spice/spice.v66' into staging

    Anthony Liguori
    Anthony Liguori committed Dec 18, 2012
    * spice/spice.v66:
      docs: add spice-port-fqdn.txt
      spice-qemu-char: register spicevmc ports during qemu_spice_init()
      spice-qemu-char: keep a list of spice chardev
      spice-qemu-char: add spiceport chardev
      spice-qemu-char: factor out CharDriverState creation
      spice-qemu-char: write to chardev whatever amount it can read
      qxl+vnc: register a vm state change handler for dummy spice_server
      qxl: save qemu_create_displaysurface_from result
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  4. Merge remote-tracking branch 'sstabellini/xen-20121217' into staging

    Anthony Liguori
    Anthony Liguori committed Dec 18, 2012
    * sstabellini/xen-20121217:
      cpu_ioreq_pio, cpu_ioreq_move: i should be uint32_t rather than int
      cpu_ioreq_pio, cpu_ioreq_move: introduce read_phys_req_item, write_phys_req_item
      Fix compile errors when enabling Xen debug logging.
      xen: fix trivial PCI passthrough MSI-X bug
      xen: implement support for secondary consoles in the console backend
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  5. configure: Earlier pkg-config probe

    stweil authored and Stefan Hajnoczi committed Dec 16, 2012
    Probe pkg-config before it is used for the first time (libseccomp check).
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  6. vmmouse_reset(): remove minimal code duplication

    lersek authored and Stefan Hajnoczi committed Dec 13, 2012
    Commit 069ab0e added a vmmouse_disable() call to vmmouse_reset().
    vmmouse_disable() resets the status already.
    
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  7. linux-user/syscall.c: remove wrong forward decl of setgroups()

    John Spencer Stefan Hajnoczi
    John Spencer authored and Stefan Hajnoczi committed Dec 10, 2012
    this declaration is wrong:
    the correct prototype on linux is:
    int setgroups(size_t size, const gid_t *list);
    
    since by default musl libc exposes this symbol in unistd.h
    additionally to grp.h, the wrong declaration causes a build error.
    
    the proper fix is to simply include the correct header.
    
    Signed-off-by: John Spencer <maillist-qemu@barfooze.de>
    
    Reviewed-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  8. fix build error on ARM due to wrong glibc check

    John Spencer Stefan Hajnoczi
    John Spencer authored and Stefan Hajnoczi committed Dec 10, 2012
    the test for glibc < 2 "succeeds" wrongly for any non-glibc C library,
    and breaks the build on musl libc.
    we must first test if __GLIBC__ is defined at all, before using it
    unconditionally.
    
    Signed-off-by: John Spencer <maillist-qemu@barfooze.de>
    Reviewed-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>