Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: qdev
Commits on Jan 1, 2013
  1. qbus: QOM'ify qbus_realize()

    authored
    Add the designated Error-reporting argument, even if currently unused.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  2. qdev: Eliminate qdev_free() in favor of QOM

    authored
    qdev_free() was trivially wrapping object_delete(). Inline it and drop
    the wrapper as a further step to QOM'ify qdev.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
  3. qdev: Rename unparenting callback

    authored
    In commit 667d22d (qdev: move bus
    removal to object_unparent) a certain reviewer missed that a private
    qdev_remove_from_bus() function was introduced in midst new-style
    device_*() functions... Fix this.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Anthony Liguori <anthony@codemonkey.ws>
  4. @stweil @aurel32

    pflash_cfi01: Suppress warning when Linux probes for AMD flash

    stweil authored aurel32 committed
    There are several ARM and MIPS boards which are manufactured with
    either Intel (pflash_cfi01.c) or AMD (pflash_cfi02.c) flash memory.
    
    The Linux kernel supports both and first probes for AMD flash which
    resulted in one or two warnings from the Intel flash emulation:
    
    pflash_write: Unimplemented flash cmd sequence (offset 0000000000000000, wcycle 0x0 cmd 0x0 value 0xf000f0)
    pflash_write: Unimplemented flash cmd sequence (offset 0000000000000000, wcycle 0x0 cmd 0x0 value 0xf0)
    
    These warnings confuse users, so suppress them.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  5. @aurel32

    target-mips: Use EXCP_SC rather than a magic number

    陳韋任 (Wei-Ren Chen) authored aurel32 committed
      From the discussion on the ML [1], the exception limit defined by
    magic number 0x100 is actually EXCP_SC defined in cpu.h. Replace the
    magic number with EXCP_SC. Remove "#if 1 .. #endif" as well.
    
    [1] http://lists.gnu.org/archive/html/qemu-devel/2012-11/msg03080.html
    
    Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  6. @petar-jovanovic @aurel32

    target-mips: Make repl_ph to sign extend to target-long

    petar-jovanovic authored aurel32 committed
    The immediate value is 9bits, should sign-extend to 16bits. The return value to
    register should sign-extend to target_long, as Richard says, removing an
    unnecessary cast works fun.
    
    Signed-off-by: Dongxue Zhang <elta.era@gmail.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  7. @elta @aurel32

    Fix my email address

    elta authored aurel32 committed
    Fix my email address, last time it's wrong.
    
    Signed-off-by: Dongxue Zhang <elta.era@gmail.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  8. @stweil @aurel32

    target-mips: Remove semicolon from macro definition

    stweil authored aurel32 committed
    Macro RESTORE_FLUSH_MODE is similar to RESTORE_ROUNDING_MODE
    but included a semicolon.
    
    The code which uses that macro also includes a semicolon,
    so the result was an empty statement.
    
    Remove the superfluous semicolon from the macro definition.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  9. @petar-jovanovic @aurel32

    target-mips: Fix for helpers for EXTR_* instructions

    petar-jovanovic authored aurel32 committed
    The change removes some unnecessary and incorrect code for EXTR_S.H.
    Further, it corrects the mask for shift value in the EXTR_ instructions. It also
    extends the existing tests so they trigger the issues corrected with the change.
    
    Signed-off-by: Petar Jovanovic <petarj@mips.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  10. @petar-jovanovic @aurel32

    target-mips: Fix incorrect reads and writes to DSPControl register

    petar-jovanovic authored aurel32 committed
    Upper 4 bits of ccond (bits 31..28 ) of DSPControl register are not used in
    the MIPS32 architecture. They are used in the MIPS64 architecture. For MIPS32
    these bits must be written as zero, and return zero on read.
    
    The change fixes writes (WRDSP) and reads (RDDSP) to the register. It also fixes
    the tests that use these instructions, and makes them smaller and simpler.
    
    Signed-off-by: Petar Jovanovic <petarj@mips.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Commits on Dec 29, 2012
  1. @brad0 @blueswirl

    Fix semaphores fallback code

    brad0 authored blueswirl committed
    As reported in bug 1087114 the semaphores fallback code is broken which
    results in QEMU crashing and making QEMU unusable.
    
    This patch is from Paolo.
    
    This needs to be back ported to the 1.3 stable tree as well.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Brad Smith <brad@comstyle.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  2. @rth7680 @blueswirl

    tcg-hppa: Fix typo in brcond2

    rth7680 authored blueswirl committed
    Reported-by: Stuart Brady <sdb@zubnet.me.uk>
    Signed-off-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  3. @rth7680 @blueswirl

    tcg-i386: Perform cmov detection at runtime for 32-bit.

    rth7680 authored blueswirl committed
    Existing compile-time detection is spotty at best.  Convert
    it all to runtime detection instead.
    
    Signed-off-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  4. @rth7680 @blueswirl

    tcg: Add TCGV_IS_UNUSED_*

    rth7680 authored blueswirl committed
    Cc: Aurelien Jarno <aurelien@aurel32.net>
    Signed-off-by: Richard Henderson <rth@twiddle.net>
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Commits on Dec 28, 2012
  1. @brad0 @blueswirl

    Disable semaphores fallback code for OpenBSD

    brad0 authored blueswirl committed
    Disable the semaphores fallback code for OpenBSD as modern OpenBSD
    releases now have sem_timedwait().
    
    Signed-off-by: Brad Smith <brad@comstyle.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  2. @blueswirl

    usb/redirect.c: unbreak compilation due to include/char/char.h

    Alon Levy authored blueswirl committed
    Broken since:
    
    commit 927d487
    Author: Paolo Bonzini <pbonzini@redhat.com>
    Date:   Mon Dec 17 18:20:05 2012 +0100
    
        softmmu: move remaining include files to include/ subdirectories
    
    Signed-off-by: Alon Levy <alevy@redhat.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  3. @blueswirl

    Merge branch 'qom-cpu' of git://repo.or.cz/qemu/afaerber

    blueswirl authored
    * 'qom-cpu' of git://repo.or.cz/qemu/afaerber:
      MAINTAINERS: Include X86CPU in CPU maintenance area
      cpu: Move kvm_run into CPUState
      cpu: Move kvm_state field into CPUState
      ppc_booke: Pass PowerPCCPU to ppc_booke_timers_init()
      ppc4xx_devs: Return PowerPCCPU from ppc4xx_init()
      ppc_booke: Pass PowerPCCPU to {decr,fit,wdt} timer callbacks
      ppc: Pass PowerPCCPU to [h]decr timer callbacks
      ppc: Pass PowerPCCPU to [h]decr callbacks
      ppc: Pass PowerPCCPU to ppc_set_irq()
      kvm: Pass CPUState to kvm_vcpu_ioctl()
      kvm: Pass CPUState to kvm_arch_*
      cpu: Move kvm_fd into CPUState
      qdev-properties.c: Separate core from the code used only by qemu-system-*
      qdev: Coding style fixes
      cpu: Introduce CPUListState struct
      target-alpha: Add support for -cpu ?
      target-alpha: Turn CPU definitions into subclasses
      target-alpha: Avoid leaking the alarm timer over reset
      alpha: Pass AlphaCPU array to Typhoon
      target-alpha: Let cpu_alpha_init() return AlphaCPU
Commits on Dec 23, 2012
  1. MAINTAINERS: Take over kvm maintenance

    Gleb Natapov authored Anthony Liguori committed
    Replace Avi with myself as kvm maintainer.
    
    Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  2. @schiele

    configure: allow disabling pixman if not needed

    schiele authored Anthony Liguori committed
    When we build neither any system emulation targets nor the tools there
    is actually no need for pixman library.  In that case do not enforce
    presence of that library on the system.
    
    Reviewed-by: Andreas F=E4rber <afaerber@suse.de>
    Signed-off-by: Robert Schiele <rschiele@gmail.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  3. @ahorn

    tmp105: Create API for TMP105 temperature sensor.

    ahorn authored Anthony Liguori committed
    * Define enum for TMP105 registers
    * Move tmp105_set() from I2C to TMP105 header
    * Document units and range of temperature as preconditions
    
    Reviewed-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Alex Horn <alex.horn@cs.ox.ac.uk>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  4. @llvilanova

    build: Use separate makefile for "trace/"

    llvilanova authored Anthony Liguori committed
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
    --
    Changes in v2:
    
    * Do not depend on "qemu-timer-common.o".
    * Use "$(obj)" in rules to refer to the build sub-directory.
    * Remove dependencies against "$(GENERATED_HEADERS)".
    
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  5. @jan-kiszka

    win32: Switch thread abstraction to us TLS variable internally

    jan-kiszka authored Anthony Liguori committed
    We already depend on working __thread support for coroutines, so this
    complication here is no longer needed.
    
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  6. @ehabkost

    target-i386: CPUID: return highest basic leaf if eax > cpuid_xlevel

    ehabkost authored Anthony Liguori committed
    This fixes a subtle bug. A bug that probably won't cause trouble for any
    existing OS, but a bug anyway:
    
    Intel SDM Volume 2, CPUID Instruction states:
    
    > Two types of information are returned: basic and extended function
    > information. If a value entered for CPUID.EAX is higher than the maximum
    > input value for basic or extended function for that processor then the
    > data for the highest basic information leaf is returned. For example,
    > using the Intel Core i7 processor, the following is true:
    >
    >   CPUID.EAX = 05H (* Returns MONITOR/MWAIT leaf. *)
    >   CPUID.EAX = 0AH (* Returns Architectural Performance Monitoring leaf. *)
    >   CPUID.EAX = 0BH (* Returns Extended Topology Enumeration leaf. *)
    >   CPUID.EAX = 0CH (* INVALID: Returns the same information as CPUID.EAX = 0BH. *)
    >   CPUID.EAX = 80000008H (* Returns linear/physical address size data. *)
    >   CPUID.EAX = 8000000AH (* INVALID: Returns same information as CPUID.EAX = 0BH. *)
    
    AMD's CPUID Specification, on the other hand, is less specific:
    
    > The CPUID instruction supports two sets or ranges of functions,
    > standard and extended.
    >
    > • The smallest function number of the standard function range is
    >   Fn0000_0000. The largest function num- ber of the standard function
    >   range, for a particular implementation, is returned in CPUID
    >   Fn0000_0000_EAX.
    >
    > • The smallest function number of the extended function range is
    >   Fn8000_0000. The largest function num- ber of the extended function
    >   range, for a particular implementation, is returned in CPUID
    >   Fn8000_0000_EAX.
    >
    > Functions that are neither standard nor extended are undefined and
    > should not be relied upon.
    
    QEMU's behavior matched Intel's specification before, but this was
    changed by commit b3baa15. This patch
    restores the behavior documented by Intel when cpuid_xlevel2 is 0.
    
    The existing behavior when cpuid_xlevel2 is set (falling back to
    level=cpuid_xlevel) is being kept, as I couldn't find any public
    documentation on the CPUID 0xC0000000 function range on Centaur CPUs.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  7. @leilihh

    qemu-char: Inherit ptys and improve output from -serial pty

    leilihh authored Anthony Liguori committed
    Changes since V1:
      - Avoid crashing since qemu_opts_id() may return null on some
        systems according to Markus's suggestion.
    
    When controlling a qemu instance from another program, it's
    hard to know which serial port or monitor device is redirected
    to which pty. With more than one device using "pty" a lot of
    guesswork is involved.
    
    $ ./x86_64-softmmu/qemu-system-x86_64 -serial pty -serial pty -monitor pty
    char device redirected to /dev/pts/5
    char device redirected to /dev/pts/6
    char device redirected to /dev/pts/7
    
    Although we can find out what everything else is connected to
    by the "info chardev" with "-monitor stdio" in the command line,
    It'd be very useful to be able to have qemu inherit pseudo-tty
    file descriptors so they could just be specified on the command
    line like:
    
    $ ./x86_64-softmmu/qemu-system-x86_64 -serial pty -serial pty -monitor pty
    char device compat_monitor0 redirected to /dev/pts/5
    char device serial0 redirected to /dev/pts/6
    char device serial1 redirected to /dev/pts/7
    
    Referred link: https://bugs.launchpad.net/qemu/+bug/938552
    
    Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Commits on Dec 22, 2012
  1. Merge branch 'master' of git://git.qemu.org/qemu into qom-cpu

    authored
    Adapt header include paths.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
  2. @jcmvbkbc @blueswirl

    target-xtensa: fix search_pc for the last TB opcode

    jcmvbkbc authored blueswirl committed
    Zero out tcg_ctx.gen_opc_instr_start for instructions representing the
    last guest opcode in the TB.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  3. @walimis @blueswirl

    net: add missing include file

    walimis authored blueswirl committed
    To fix building error:
    
    CC    net/vde.o
    net/vde.c: In function ‘vde_cleanup’:
    net/vde.c:65:5: error: implicit declaration of function ‘qemu_set_fd_handler’ [-Werror=implicit-function-declaration]
    net/vde.c:65:5: error: nested extern declaration of ‘qemu_set_fd_handler’ [-Werror=nested-externs]
    cc1: all warnings being treated as errors
    
    Signed-off-by: Liming Wang <walimisdev@gmail.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  4. @blueswirl

    translate-all.c: Use tb1->phys_hash_next directly in tb_remove

    陳韋任 (Wei-Ren Chen) authored blueswirl committed
      When tb_remove was first commited at fd6ce8f, there were three different
    calls pass different names to offsetof. In current codebase, the other two
    calls are replaced with tb_page_remove. There is no need to have a general
    tb_remove. Omit passing the third parameter and using tb1->phys_hash_next
    directly.
    
    Signed-off-by: Chen Wei-Ren <chenwj@iis.sinica.edu.tw>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  5. @stweil @blueswirl

    net: Add missing include statement (fix compiler warnings for MinGW)

    stweil authored blueswirl committed
    These and some more compiler warnings were caused by a recent commit:
    
    net/tap-win32.c:724: warning: no previous prototype for ‘tap_has_ufo’
    net/tap-win32.c:729: warning: no previous prototype for ‘tap_has_vnet_hdr’
    ...
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  6. @bonzini @blueswirl

    xen: add missing include

    bonzini authored blueswirl committed
    xen-all needs to access CharDeviceState's filename field, so
    it needs to include char/char.h.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Tested-by: Andreas Färber <afaerber@suse.de>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  7. @bonzini @blueswirl

    build: fix includes for VNC

    bonzini authored blueswirl committed
    vnc-tls.h is included by vnc.h, and it includes gnutls/gnutls.h.
    Hence, GnuTLS header files are needed by all files that include
    vnc.h, most notably qmp.c.  Move these flags to QEMU_CFLAGS for
    simplicity.
    
    Reported-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Commits on Dec 21, 2012
  1. Merge remote-tracking branch 'quintela/thread-20121220.next' into sta…

    Anthony Liguori authored
    …ging
    
    * quintela/thread-20121220.next: (79 commits)
      migration: merge QEMUFileBuffered into MigrationState
      migration: fix qemu_get_fd for BufferedFile
      ram: refactor ram_save_block() return value
      ram: account the amount of transferred ram better
      ram: optimize migration bitmap walking
      ram: Use memory_region_test_and_clear_dirty
      memory: introduce memory_region_test_and_clear_dirty
      ram: Add last_sent_block
      ram: rename last_block to last_seen_block
      migration: move migration notifier
      migration: Inline qemu_fopen_ops_buffered into migrate_fd_connect
      migration: move migration_fd_put_ready()
      migration: add XFER_LIMIT_RATIO
      migration: move buffered_file.c code into migration.c
      savevm: New save live migration method: pending
      buffered_file: unfold buffered_append in buffered_put_buffer
      buffered_file: don't flush on put buffer
      buffered_file: Unfold the trick to restart generating migration data
      migration: just lock migrate_fd_put_ready
      migration: remove unfreeze logic
      ...
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Commits on Dec 20, 2012
  1. @juanquintela

    migration: merge QEMUFileBuffered into MigrationState

    juanquintela authored
    Avoid splitting the state of outgoing migration, more or less arbitrarily,
    between two data structures.  QEMUFileBuffered anyway is used only during
    migration.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Juan Quintela <quintela@redhat.com>
  2. @bonzini @juanquintela

    migration: fix qemu_get_fd for BufferedFile

    bonzini authored juanquintela committed
    Not really used, but nice to have it correct. :)
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Juan Quintela <quintela@redhat.com>
  3. @juanquintela

    ram: refactor ram_save_block() return value

    juanquintela authored
    It could only return 0 if we only found dirty xbzrle pages that hadn't
    changed (i.e. they were written with the same content).  We don't care
    about that case, it is the same than nothing dirty.
    
    So now the return of the function is how much have it written, nothing
    else. Adjust callers.
    
    And we also made ram_save_iterate() return the number of transferred
    bytes, not the number of transferred pages.
    
    Signed-off-by: Juan Quintela <quintela@redhat.com>
Something went wrong with that request. Please try again.