Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: qom-cpu-xtensa
Commits on Apr 14, 2012
  1. target-xtensa: Start QOM'ifying CPU init

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

    authored
    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>
  3. target-xtensa: QOM'ify CPU

    authored
    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>
  4. target-alpha: QOM'ify CPU init

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

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

    authored
    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>
  7. target-ppc: Start QOM'ifying CPU init

    authored
    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]
Commits on Apr 13, 2012
  1. target-ppc: QOM'ify CPU

    authored
    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>
  2. @dgibson

    target-ppc: Add hooks for handling tcg and kvm limitations

    dgibson authored committed
    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>
  3. target-ppc: Drop cpu_ppc_close()

    authored
    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>
  4. Merge remote-tracking branch 'stefanha/trivial-patches' into staging

    Anthony Liguori authored
    * 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
  5. Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

    Anthony Liguori authored
    * 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
  6. Merge remote-tracking branch 'afaerber/qom-cpu-lm32.v3' into staging

    Anthony Liguori authored
    * afaerber/qom-cpu-lm32.v3:
      target-lm32: QOM'ify CPU reset
      target-lm32: QOM'ify CPU init
      target-lm32: QOM'ify CPU
  7. @pm215

    configure: Insist on a Python 2, not Python 3

    pm215 authored Stefan Hajnoczi committed
    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>
  8. @pm215

    bsd-user: fix compile failure

    pm215 authored Stefan Hajnoczi committed
    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>
Commits on Apr 12, 2012
  1. @khers

    kvmclock: guest stop notification

    khers authored Marcelo Tosatti committed
    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>
  2. kvm: update linux headers

    Marcelo Tosatti authored
    Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
  3. @jibaron

    kvm: set gsi_bits and max_gsi correctly

    jibaron authored Marcelo Tosatti committed
    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>
  4. @jan-kiszka

    kvm: Drop unused kvm_pit_in_kernel

    jan-kiszka authored Marcelo Tosatti committed
    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>
  5. @mstsirkin

    kvm: allow arbitrarily sized mmio ioeventfd

    mstsirkin authored Marcelo Tosatti committed
    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>
  6. @jan-kiszka

    kvm: Drop redundant kvm_enabled from cpu_thread_is_idle

    jan-kiszka authored Marcelo Tosatti committed
    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>
  7. kvm: add flightrecorder script

    Stefan Hajnoczi authored Marcelo Tosatti committed
    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>
  8. ps2: avoid repeated header file includes

    Wanpeng Li authored Stefan Hajnoczi committed
    Signed-off-by: Wanpeng Li <liwp@linux.vnet.ibm.com>
    Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
  9. @stweil

    make: Always set LC_ALL=C for makeinfo

    stweil authored Stefan Hajnoczi committed
    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>
  10. @stweil

    configure: Fix wrong preprocessor statement

    stweil authored Stefan Hajnoczi committed
    #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>
  11. @pm215

    configure: Remove useless uses of ARCH_CFLAGS

    pm215 authored Stefan Hajnoczi committed
    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>
  12. @pete128 @edgarigl

    target-microblaze: added PetaLogix copyright

    pete128 authored edgarigl committed
    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>
Commits on Apr 11, 2012
  1. target-lm32: QOM'ify CPU reset

    authored
    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>
  2. target-lm32: QOM'ify CPU init

    authored
    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>
  3. target-lm32: QOM'ify CPU

    authored
    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>
  4. rtl8139: do not assume TxStatus[] and TxAddr[] are adjacent

    Stefan Hajnoczi authored Anthony Liguori committed
    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>
Commits on Apr 10, 2012
  1. target-i386: QOM'ify CPU reset

    authored
    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>
  2. target-i386: QOM'ify CPU init

    authored
    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>
  3. target-i386: QOM'ify CPU

    authored
    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>
  4. target-i386: Rename cpuid.c

    authored
    Name it cpu.c to align with other QOM'ified targets.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
Something went wrong with that request. Please try again.