Permalink
Commits on Apr 14, 2012
  1. target-xtensa: Start QOM'ifying CPU init

    Move XtensaConfig-independent code from cpu_xtensa_init() into a
    QOM initfn, as a start.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 11, 2012
  2. target-xtensa: QOM'ify CPU reset

    Move code from cpu_state_reset() into QOM xtensa_cpu_reset().
    To avoid moving reset_mmu() and dependencies, make it non-static.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 11, 2012
  3. target-xtensa: QOM'ify CPU

    Embed CPUXtensaState as first member of XtensaCPU.
    Let CPUClass::reset() call cpu_state_reset() for now.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 11, 2012
  4. target-alpha: QOM'ify CPU init

    Move code from cpu_alpha_init() into a CPU initializer.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 6, 2012
  5. target-alpha: QOM'ify CPU

    Embed CPUAlphaState as first member of AlphaCPU.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 6, 2012
  6. target-ppc: QOM'ify CPU reset

    Move code from cpu_state_reset() into ppc_cpu_reset().
    Reorder #include of helper_regs.h to use it in translate_init.c.
    
    Adjust whitespace and add braces.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: David Gibson <david@gibson.dropbear.id.au>
    committed Apr 6, 2012
  7. target-ppc: Start QOM'ifying CPU init

    Move code not dependent on ppc_def_t from cpu_ppc_init() into an initfn.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: David Gibson <david@gibson.dropbear.id.au>
    [AF: Rebased on top of moved env->cpu_index fixup]
    committed Apr 6, 2012
Commits on Apr 13, 2012
  1. target-ppc: QOM'ify CPU

    Embed CPUPPCState as first member of PowerPCCPU.
    Distinguish between "powerpc-cpu", "powerpc64-cpu" and
    "embedded-powerpc-cpu".
    
    Let CPUClass::reset() call cpu_state_reset() for now.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: David Gibson <david@gibson.dropbear.id.au>
    committed Apr 6, 2012
  2. target-ppc: Add hooks for handling tcg and kvm limitations

    On target-ppc, our table of CPU types and features encodes the features as
    found on the hardware, regardless of whether these features are actually
    usable under TCG or KVM.  We already have cases where the information from
    the cpu table must be fixed up to account for limitations in the emulation
    method we're using.  e.g. TCG does not support the DFP and VSX instructions
    and KVM needs different numbering of the CPUs in order to tell it the
    correct thread to core mappings.
    
    This patch cleans up these hacks to handle emulation limitations by
    consolidating them into a pair of functions specifically for the purpose.
    
    Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
    [AF: Style and typo fixes, rename new functions and drop ppc_def_t arg]
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    dgibson committed with Apr 4, 2012
  3. target-ppc: Drop cpu_ppc_close()

    It is unused, so avoid QOM'ifying it unneededly.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: David Gibson <david@gibson.dropbear.id.au>
    committed Apr 6, 2012
  4. Merge remote-tracking branch 'stefanha/trivial-patches' into staging

    * stefanha/trivial-patches:
      configure: Insist on a Python 2, not Python 3
      bsd-user: fix compile failure
      ps2: avoid repeated header file includes
      make: Always set LC_ALL=C for makeinfo
      configure: Fix wrong preprocessor statement
      configure: Remove useless uses of ARCH_CFLAGS
    Anthony Liguori committed Apr 13, 2012
  5. Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

    * qemu-kvm/uq/master:
      kvmclock: guest stop notification
      kvm: update linux headers
      kvm: set gsi_bits and max_gsi correctly
      kvm: Drop unused kvm_pit_in_kernel
      kvm: allow arbitrarily sized mmio ioeventfd
      kvm: Drop redundant kvm_enabled from cpu_thread_is_idle
      kvm: add flightrecorder script
    Anthony Liguori committed Apr 13, 2012
  6. Merge remote-tracking branch 'afaerber/qom-cpu-lm32.v3' into staging

    * afaerber/qom-cpu-lm32.v3:
      target-lm32: QOM'ify CPU reset
      target-lm32: QOM'ify CPU init
      target-lm32: QOM'ify CPU
    Anthony Liguori committed Apr 13, 2012
  7. configure: Insist on a Python 2, not Python 3

    Our Python scripts require Python 2 and will fail on Python 3, eg:
      File "/home/petmay01/linaro/qemu-from-laptop/qemu/scripts/qapi-commands.py", line 378
          except getopt.GetoptError, err:
                                   ^
      SyntaxError: invalid syntax
    
    Add a check to configure that Python is not a Python 3, so we can
    fail with a comprehensible error rather than an obscure one.
    
    Reported-by: Boris Matti <swiftos@lavabit.com>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    pm215 committed with Stefan Hajnoczi Apr 12, 2012
  8. bsd-user: fix compile failure

    bsd-user doesn't actually support reserving a memory area for the
    guest address space, but we need to at least define the reserved_va
    global so that cpu-all.h's RESERVED_VA macro will work correctly.
    
    This fixes a compilation error introduced in commit 39879bb
    which added a use of RESERVED_VA to h2g_valid().
    
    Reported-by: Brad Smith <brad@comstyle.com>
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Reviewed-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    pm215 committed with Stefan Hajnoczi Apr 12, 2012
Commits on Apr 12, 2012
  1. kvmclock: guest stop notification

    Often when a guest is stopped from the qemu console, it will report spurious
    soft lockup warnings on resume.  There are kernel patches being discussed that
    will give the host the ability to tell the guest that it is being stopped and
    should ignore the soft lockup warning that generates.  This patch uses the qemu
    Notifier system to tell the guest it is about to be stopped.
    
    Signed-off-by: Eric B Munson <emunson@mgebm.net>
    Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
    khers committed with Marcelo Tosatti Apr 7, 2012
  2. kvm: update linux headers

    Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
    Marcelo Tosatti committed Apr 12, 2012
  3. kvm: set gsi_bits and max_gsi correctly

    The current kvm_init_irq_routing() doesn't set up the used_gsi_bitmap
    correctly, and as a consequence pins max_gsi to 32 when it really
    should be 1024. I ran into this limitation while testing pci
    passthrough, where I consistently got an -ENOSPC return from
    kvm_get_irq_route_gsi() called from assigned_dev_update_msix_mmio().
    
    Signed-off-by: Jason Baron <jbaron@redhat.com>
    Acked-by: Alex Williamson <alex.williamson@redhat.com>
    Acked-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
    jibaron committed with Marcelo Tosatti Mar 28, 2012
  4. kvm: Drop unused kvm_pit_in_kernel

    This is now implied by kvm_irqchip_in_kernel.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
    jan-kiszka committed with Marcelo Tosatti Mar 21, 2012
  5. kvm: allow arbitrarily sized mmio ioeventfd

    We use a 2 byte ioeventfd for virtio memory,
    add support for this.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Reviewed-by: Amos Kong <akong@redhat.com>
    Signed-off-by: Avi Kivity <avi@redhat.com>
    mstsirkin committed with Marcelo Tosatti Mar 20, 2012
  6. kvm: Drop redundant kvm_enabled from cpu_thread_is_idle

    This is now implied by kvm_irqchip_in_kernel.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Avi Kivity <avi@redhat.com>
    jan-kiszka committed with Marcelo Tosatti Mar 21, 2012
  7. kvm: add flightrecorder script

    The kvm kernel module includes a number of trace events which can be
    useful when debugging system behavior.  Even on production systems these
    trace events can be used to observe guest behavior and identify the
    source of problems.
    
    The kvm_flightrecorder script is a command-line wrapper for the
    /sys/kernel/debug/tracing interface.  Kernel symbols do not need to be
    installed.
    
    This script captures a fixed-size buffer of KVM trace events.  Recent
    events overwrite the oldest events when the buffer size is exceeded and
    it is possible to leave KVM tracing enabled for any period of time with
    just a fixed-size buffer.  If the buffer is large enough this script is
    a useful tool for collecting detailed information after an issue occurs
    with a guest.  Hence the name "flight recorder".
    
    The script can also be used in 'tail' mode to simply view KVM trace
    events as they occur.  This is handy for development and to ensure that
    the guest is indeed running.
    
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
    Stefan Hajnoczi committed with Marcelo Tosatti Mar 9, 2012
  8. ps2: avoid repeated header file includes

    Signed-off-by: Wanpeng Li <liwp@linux.vnet.ibm.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    Wanpeng Li committed with Stefan Hajnoczi Apr 11, 2012
  9. make: Always set LC_ALL=C for makeinfo

    Otherwise the generated file qemu-doc.html will contain "Anhang"
    instead of "Appendix" with a German locale (de_DE.UTF-8).
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    stweil committed with Stefan Hajnoczi Mar 27, 2012
  10. configure: Fix wrong preprocessor statement

    #abort is not a preprocessor statement. It aborts, but the preprocessor
    statement #error is more common to abort a compilation.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    stweil committed with Stefan Hajnoczi Apr 6, 2012
  11. configure: Remove useless uses of ARCH_CFLAGS

    Remove some useless uses of ARCH_CFLAGS -- this variable was never set
    so will always be empty. The uses were accidental: in commit 0c439cb
    Juan Quintela removed ARCH_CFLAGS in favour of CFLAGS (which in turn
    became QEMU_CFLAGS). However in commit be17dc9 a use of it was
    reintroduced (apparently accidentally) by Michael S. Tsirkin, and then
    I subsequently cut-n-pasted that into a number of other configure
    feature tests.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Juan Quintela <quintela@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    pm215 committed with Stefan Hajnoczi Apr 4, 2012
  12. target-microblaze: added PetaLogix copyright

    Microblaze cpu development has been driven and funded by PetaLogix. Added (c)
    PetaLogix line accordingly.
    
    Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
    Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
    pete128 committed with edgarigl Apr 12, 2012
Commits on Apr 11, 2012
  1. target-lm32: QOM'ify CPU reset

    Move code from cpu_state_reset() into QOM lm32_cpu_reset().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: Michael Walle <michael@walle.cc>
    committed Apr 10, 2012
  2. target-lm32: QOM'ify CPU init

    Move code from cpu_lm32_init() to an initfn; call cpu_reset()
    instead of cpu_state_reset().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: Michael Walle <michael@walle.cc>
    committed Apr 10, 2012
  3. target-lm32: QOM'ify CPU

    Embed CPULM32State as first member of QOM LM32CPU.
    Let CPUClass::reset() call cpu_state_reset() for now.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Acked-by: Michael Walle <michael@walle.cc>
    committed Apr 10, 2012
  4. rtl8139: do not assume TxStatus[] and TxAddr[] are adjacent

    Commit afe0a59 ("rtl8139: support byte
    read to TxStatus registers") reused rtl8139_TxStatus_read() for reading
    TxAddr registers.  It relies on the fact that TxStatus[] and TxAddr[]
    are adjacent.
    
    This causes a gcc warning because the compiler can detect that array
    access is out-of-bounds:
    
      hw/rtl8139.c:2501:27: error: array subscript is above array bounds [-Werror=array-bounds]
    
    This patch refactors the function so that we don't rely on out-of-bounds
    accesses.
    
    Cc: Jason Wang <jasonwang@redhat.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Stefan Hajnoczi committed with Anthony Liguori Apr 11, 2012
Commits on Apr 10, 2012
  1. target-i386: QOM'ify CPU reset

    Move code from cpu_state_reset() into QOM x86_cpu_reset(),
    fixing style issues for FPU init.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 2, 2012
  2. target-i386: QOM'ify CPU init

    Move code from cpu_x86_init() to new QOM x86_cpu_initfn().
    Also move mce_init() to cpu.c since it's used nowhere else.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 2, 2012
  3. target-i386: QOM'ify CPU

    Embed CPUX86State as first member of X86CPU.
    Distinguish between "x86_64-cpu" and "i386-cpu".
    Drop cpu_x86_close() in favor of calling object_delete() directly.
    
    For now let CPUClass::reset() call cpu_state_reset().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 2, 2012
  4. target-i386: Rename cpuid.c

    Name it cpu.c to align with other QOM'ified targets.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    committed Apr 2, 2012