Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: qom-cpu-x86-pr…
Commits on Apr 25, 2012
  1. target-i386: Introduce "tsc-frequency" property for X86CPU

    authored
    Use Hz as unit.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  2. target-i386: Prepare "vendor" property for X86CPU

    authored
    Using it now would incur converting the three x86_def_t vendor words
    into a string for object_property_set_str(), then back to three words
    in the "vendor" setter.
    The built-in CPU definitions use numeric preprocessor defines to
    initialize the three words in a charset-safe way, so do not change the
    fields to char[12] just to use the setter.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  3. target-i386: Introduce "xlevel" property for X86CPU

    authored
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  4. target-i386: Introduce "level" property for X86CPU

    authored
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  5. target-i386: Add property getter for CPU model-id

    authored
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  6. target-i386: Add property getter for CPU stepping

    authored
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  7. target-i386: Add property getter for CPU model

    authored
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
    Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
  8. target-i386: Add property getter for CPU family

    authored
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  9. target-i386: Add "model-id" property to X86CPU

    authored
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  10. target-i386: Add "stepping" property to X86CPU

    authored
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  11. target-i386: Add "model" property to X86CPU

    authored
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  12. target-i386: Add "family" property to X86CPU

    authored
    Add the property early in the initfn so that it can be used in helpers
    such as mce_init().
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    [AF: Add an error_free(), spotted by Michael Roth]
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  13. target-i386: Add range check for -cpu ,family=x

    authored
    A family field value of 0xf and extended family field value of 0xff is
    the maximum representable unsigned family number.
    All other CPUID property values are bounds-checked, so add a check here
    for symmetry before we adopt it in a property setter.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  14. target-i386: Pass X86CPU to cpu_x86_register()

    authored
    Avoids an x86_env_get_cpu() call there, to work with QOM properties.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
  15. target-i386: Fix x86_cpuid_set_model_id()

    authored
    Don't assume zeroed cpuid_model[] fields.
    
    This didn't break anything yet but QOM properties should be able to set
    the value to something else without setting an intermediate zero string.
    
    Reviewed-by: Eduardo Habhost <ehabkost@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
    [AF: Use memset() instead of for loop, suggested by Igor]
    Signed-off-by: Andreas Färber <afaerber@suse.de>
Commits on Apr 24, 2012
  1. @wom-bat

    Limit ptimer rate to something achievable

    wom-bat authored Anthony Liguori committed
    If a guest sets very short timeouts, and asks for a timer to be reloaded on
    timeout, QEMU can go to 100%CPU utilisation and become unresponsive,
    as it is spending all its time generating timeout interrupts.  On real
    hardware this doesn't matter, as the interrupts are just coalesced,
    and the effect is to have the interrupt asserted all the time.
    
    This patch is a band-aid, that prevents timeouts less than 10
    microseconds from being set.  10 microseconds is a limit that was
    determined empirically on a variety of machines as the shortest that
    allowed QEMU to pick up a control-a c sequence to get at the monitor.
    
    Reported-by: Anna Lyons <anna.lyons@nicta.com.au>
    Signed-off-by: Peter Chubb <peter.chubb@nicta.com.au>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  2. qom: Refine container_get() to allow using a custom root

    authored Anthony Liguori committed
    Specify the root to search from as argument. This avoids hardcoding
    "/machine" in some places and makes it more flexible.
    
    Signed-off-by: Andreas Färber <afaerber@suse.de>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Anthony Liguori <anthony@codemonkey.ws>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  3. @rth7680

    qtest: Fix tv_usec != long

    rth7680 authored Anthony Liguori committed
    Sparc Debian 5.0.8 does not define __suseconds_t as long,
    but FMT_timeval expects %ld.
    
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Richard Henderson <rth@twiddle.net>
    Cc: Anthony Liguori <aliguori@us.ibm.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  4. @portante

    Remove extra pthread switch

    portante authored Anthony Liguori committed
      remove the extra pthread switch which might be there
      from the package config check for gthreads.
    
    Signed-off-by: Peter Portante <peter.portante@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  5. configure: Virtfs doesn't require libcap.

    Kusanagi Kouichi authored Anthony Liguori committed
    Only proxy helper does.
    
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  6. @stweil

    qemu-char: Fix crash when switching consoles

    stweil authored Anthony Liguori committed
    qemu-system-arm (and other system emulations) crashes with SDL when
    the user switches consoles (Alt-Ctrl-F4).
    
    We already check for NULL pointers in qemu_chr_fe_ioctl,
    qemu_chr_be_can_write and other functions, so do this also
    for s->chr_read in qemu_chr_be_write. This fixes the crash.
    
    Signed-off-by: Stefan Weil <sw@weilnetz.de>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  7. @ehabkost

    configure: add --with-confsuffix option

    ehabkost authored Anthony Liguori committed
    This will allow the user to make Qemu use a different subdirectory name
    inside $datadir and $sysconfdir, instead of "/qemu".
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  8. @ehabkost

    configure: change meaning of --datadir to Autoconf convention

    ehabkost authored Anthony Liguori committed
    Autoconf uses --datadir for the /usr/share directory, not the
    program-specific subdirectory inside /usr/share. This changes configure
    to match autoconf behavior.
    
    Note that this will break compatibility with existing build scripts.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  9. @ehabkost

    create_config: simplify prefix=* block, remove CONFIG_QEMU_PREFIX

    ehabkost authored Anthony Liguori committed
    As now that block handles only the prefix variable, the code can be much
    simpler. This also removes the CONFIG_QEMU_PREFIX define as it is not
    used by any C code.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  10. @ehabkost

    create_config: remove *dir block

    ehabkost authored Anthony Liguori committed
    Now only the qemu_*dir variables will become #defines. The other
    directory names aren't used by the C code.
    
    That means the following #defines won't be available in C code anymore:
    
     - CONFIG_QEMU_BINDIR
     - CONFIG_QEMU_LIBDIR
     - CONFIG_QEMU_INCLUDEDIR
     - CONFIG_QEMU_MANDIR
     - CONFIG_QEMU_SYSCONFDIR
     - CONFIG_QEMU_LIBEXECDIR
    
    The following #defines are going to be kept because they are handled by
    the qemu_* block on create_config:
    
     - CONFIG_QEMU_CONFDIR
     - CONFIG_QEMU_DATADIR
     - CONFIG_QEMU_DOCDIR
    
    This one will be kept because it is set directly by ./configure:
    
     - CONFIG_QEMU_HELPERDIR
    
    This patch keeps the 'prefix=*' (CONFIG_QEMU_PREFIX) pattern because
    other variables may use $prefix on their config-host.mak definitions.
    The remaining code will be simplified on a further patch.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  11. @ehabkost

    config-host.mak: reorder variables a bit

    ehabkost authored Anthony Liguori committed
    Cosmetic change.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  12. @ehabkost

    config-host.mak: remove CONFIG_QEMU_SHAREDIR

    ehabkost authored Anthony Liguori committed
    There is no code using that variable according to 'git grep', so kill
    it.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  13. @ehabkost

    config-host.mak: rename docdir to qemu_docdir

    ehabkost authored Anthony Liguori committed
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  14. @ehabkost

    Makefile: use $(qemu_confdir) instead of $(sysconfdir)/qemu

    ehabkost authored Anthony Liguori committed
    Instead of hardcoding the directory suffix, use the qemu-specific
    directory variable.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  15. @ehabkost

    config-host.mak: rename confdir to qemu_confdir

    ehabkost authored Anthony Liguori committed
    $confdir is a confusing name, as it's not clear if it's "the system
    config dir" or "the Qemus-specific directory inside the config dir".
    $qemu_confdir makes it more clear.
    
    The current C code that uses CONFIG_QEMU_CONFDIR should be safe, as now
    create_config generates the same #define name (CONFIG_QEMU_CONFDIR) for
    both "confdir" and "qemu_confdir" variables.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  16. @ehabkost

    config-host.mak: rename datadir to qemu_datadir

    ehabkost authored Anthony Liguori committed
    Autoconf concept of "datadir" is supposed to be "$prefix/share", not
    "$prefix/share/PACKAGE", so using datadir for the Qemu-specific
    directory is confusing.
    
    The current C code that uses CONFIG_QEMU_DATADIR should be safe, as now
    create_config generates the same #define name (CONFIG_QEMU_DATADIR) for
    both "datadir" and "qemu_datadir" variables.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  17. @ehabkost

    create_config: separate section for qemu_*dir variables (v2)

    ehabkost authored Anthony Liguori committed
    The generic *dir section will eventually go away and be replaced with
    qemu_* section. By now, both sections will be kept, while the variables
    get renamed on config-host.mak.
    
    With this patch, a XXXdir variable will become a CONFIG_QEMU_XXXDIR
    define, and a qemu_XXXdir variable will become CONFIG_QEMU_XXXDIR as
    well (instead of becoming a CONFIG_QEMU_QEMU_XXXDIR define).
    
    Changes v1 -> v2:
     - Rebase on top of newer qemu.git changes, that changed
       "tr '[:lower:]' '[:upper:]'" to "LC_ALL=C tr '[a-z]' '[A-Z]'".
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  18. @ehabkost

    configure: rename $confdir to $qemu_confdir

    ehabkost authored Anthony Liguori committed
    There's no "confdir" variable on Autoconf, but it's good to make it
    clear that it's a variable for the Qemu-specific subdirectory inside
    $sysconfdir.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  19. @ehabkost

    configure: rename $docdir to $qemu_docdir

    ehabkost authored Anthony Liguori committed
    The autoconf "docdir" variable is used for the program-specific
    subdirectory, but anyway it's better to make it clear that the variable
    is used for the qemu-specific subdirectory path.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  20. @ehabkost

    configure: rename $datadir to $qemu_datadir

    ehabkost authored Anthony Liguori committed
    The variable is used for the qemu-specific directory and has a different
    meaning of the autoconf "datadir" variable (that's used for the
    $prefix/share directory, not for $prefix/share/PACKAGE).
    
    This doesn't change behavior or interfaces, it's just an internal
    variable rename.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Something went wrong with that request. Please try again.