Skip to content

Commits

Permalink
work/cpu-gener…
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Apr 19, 2019

  1. WIP: use generic_cpu_list (not working yet because format not set)

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    4efbbab View commit details
    Browse the repository at this point in the history
  2. cpu: Generic cpu_list function

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    df122e7 View commit details
    Browse the repository at this point in the history
  3. WIP: alias table

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    71ebad9 View commit details
    Browse the repository at this point in the history
  4. cpu: Replace CPUClass::class_by_name with CPUClass::cpu_class_name

    Instead of a callback that returns an ObjectClass, make the few
    architectures that still have a class_by_name callback just
    return the CPU class name.  It will save a few lines of code on
    each of these implementations.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    3e83e7a View commit details
    Browse the repository at this point in the history
  5. ppc64: List QOM type names directly on alias table

    Listing the QOM types directly will let us avoid extra
    ppc_cpu_class_by_name() calls in the code (now
    object_class_by_name() may be called directly).
    
    Having the type names in the table will be also useful when we
    replace CPUClass::class_by_name with a new callback method that
    will just return a string.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    ca7dce8 View commit details
    Browse the repository at this point in the history
  6. tilegx: fixed class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    130ddae View commit details
    Browse the repository at this point in the history
  7. nios2: fixed class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    7bd8c46 View commit details
    Browse the repository at this point in the history
  8. microblaze: fixed class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    b06f271 View commit details
    Browse the repository at this point in the history
  9. hppa: fixed class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    a2432dc View commit details
    Browse the repository at this point in the history
  10. riscv: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    770af77 View commit details
    Browse the repository at this point in the history
  11. moxie: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    821a03f View commit details
    Browse the repository at this point in the history
  12. m68k: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    3355e29 View commit details
    Browse the repository at this point in the history
  13. lm32: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    f62c7df View commit details
    Browse the repository at this point in the history
  14. x86: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    67ae334 View commit details
    Browse the repository at this point in the history
  15. arm: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    c9e7002 View commit details
    Browse the repository at this point in the history
  16. xtensa: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    ae43173 View commit details
    Browse the repository at this point in the history
  17. unicore32: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    514d214 View commit details
    Browse the repository at this point in the history
  18. tricore: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    83827eb View commit details
    Browse the repository at this point in the history
  19. s390x: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    40d3795 View commit details
    Browse the repository at this point in the history
  20. openrisc: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    16b1a4b View commit details
    Browse the repository at this point in the history
  21. mips: set class name format

    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    76d6485 View commit details
    Browse the repository at this point in the history
  22. cpu: Let architectures set CPU class name format

    Instead of requiring every architecture to implement a
    class_by_name function, let them set a format string at
    CPUClass::class_name_format.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    722017d View commit details
    Browse the repository at this point in the history
  23. arm: Remove special case for "any" CPU model

    We already have an entry for "any" at arm_cpus[], which makes a
    "any-arm-cpu" QOM type be registered.  This means the regular QOM
    type name lookup code already works and there's no need for a
    special case.
    
    Cc: Peter Maydell <peter.maydell@linaro.org>
    Cc: qemu-arm@nongnu.org
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    d3831cc View commit details
    Browse the repository at this point in the history
  24. arm: Don't split CPU model string

    CPUClass::class_by_name is called after the CPU model name and
    options were already split, there's no need to split it again.
    
    Fixes: fb8d6c2 ("target-arm: Add CPU property to disable AArch64")
    Cc: Greg Bellows <greg.bellows@linaro.org>
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    125f606 View commit details
    Browse the repository at this point in the history
  25. riscv: Don't split CPU model string

    CPUClass::class_by_name is called after the CPU model name and
    options were already split, there's no need to split it again.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    c64ddc5 View commit details
    Browse the repository at this point in the history
  26. cpu: Extract CPU class lookup from parse_cpu_option()

    The new function will be useful in user mode, when we already
    have a CPU model and don't need to parse any extra options.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ---
    Changes v1 -> v2:
    * Rename function from lookup_cpu_option() to arch_cpu_class_by_name()
    * Redo patch after changing the return value type of cpu_class_by_name()
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    ef4e181 View commit details
    Browse the repository at this point in the history
  27. cpu: Change return type of cpu_class_by_name() to CPUClass*

    The function always returns a CPU class.  Change the return type
    to reflect that.
    
    I'm not changing the type of CPUClass::class_by_name() yet,
    because many of those implementations will be eliminated by the
    next commits.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 19, 2019
    Copy the full SHA
    5497a4d View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2019

  1. linux-headers: add linux/mman.h.

    Update it to 4.20-rc1
    
    Signed-off-by: Zhang Yi <yi.z.zhang@linux.intel.com>
    Message-Id: <f9346f1816b940a4231524a84d57a2cac8466ccc.1549555521.git.yi.z.zhang@linux.intel.com>
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Zhang Yi authored and ehabkost committed Apr 18, 2019
    Copy the full SHA
    759629a View commit details
    Browse the repository at this point in the history
  2. scripts/update-linux-headers: add linux/mman.h

    Add linux/mman.h,asm/mman.h,asm/mman-common.h to linux-headers,
    So we can use more mmap2 flags.
    
    Signed-off-by: Zhang Yi <yi.z.zhang@linux.intel.com>
    Message-Id: <f65c78d74859f815aa9c4f97407eb33361a6672c.1549555521.git.yi.z.zhang@linux.intel.com>
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Zhang Yi authored and ehabkost committed Apr 18, 2019
    Copy the full SHA
    4c3886c View commit details
    Browse the repository at this point in the history
  3. util/mmap-alloc: Add a 'is_pmem' parameter to qemu_ram_mmap

    besides the existing 'shared' flags, we are going to add
    'is_pmem' to qemu_ram_mmap(), which indicated the memory backend
    file is a persist memory.
    
    Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
    Signed-off-by: Zhang Yi <yi.z.zhang@linux.intel.com>
    Reviewed-by: Pankaj Gupta <pagupta@redhat.com>
    Message-Id: <786c46862cfeb253ee0ea2f44d62ffe76edb7fa4.1549555521.git.yi.z.zhang@linux.intel.com>
    Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
    Reviewed-by: Pankaj Gupta <pagupta@redhat.com>
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Zhang Yi authored and ehabkost committed Apr 18, 2019
    Copy the full SHA
    fbdaf04 View commit details
    Browse the repository at this point in the history
  4. cpu: Fix crash with empty -cpu option

    Fix the following crash:
    
      $ qemu-system-x86_64 -cpu ''
      qemu-system-x86_64: qom/cpu.c:291: cpu_class_by_name: \
          Assertion `cpu_model && cc->class_by_name' failed.
    
    Regression test script included.
    
    Fixes: 99193d8 ("cpu: drop unnecessary NULL check and cpu_common_class_by_name()")
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Message-Id: <20190418034501.5038-1-ehabkost@redhat.com>
    Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
    Tested-by: Stefano Garzarella <sgarzare@redhat.com>
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 18, 2019
    Copy the full SHA
    2040ef0 View commit details
    Browse the repository at this point in the history
  5. cpu: Rename parse_cpu_model() to parse_cpu_option()

    The "model[,option...]" string parsed by the function is not just
    a CPU model.  Rename the function and its argument to indicate it
    expects the full "-cpu" option to be provided.
    
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Message-Id: <20190417025944.16154-2-ehabkost@redhat.com>
    Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
    Reviewed-by: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Igor Mammedov <imammedo@redhat.com>
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    ehabkost committed Apr 18, 2019
    Copy the full SHA
    9a6b99e View commit details
    Browse the repository at this point in the history
  6. vl: Simplify machine_parse()

    Exploit that argument @name is nerver null.  Check is_help_option()
    first, because that's what we do elsewhere.  If we (foolishly!)
    defined a machine named "help", -machine help would now print help
    instead of selecting the machine named "help".
    
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Wei Yang <richardw.yang@linux.intel.com>
    Message-Id: <20190405064121.23662-5-richardw.yang@linux.intel.com>
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Markus Armbruster authored and ehabkost committed Apr 18, 2019
    Copy the full SHA
    669b1a8 View commit details
    Browse the repository at this point in the history
  7. vl: Clean up after previous commit

    Since the previous commit, find_machine() and find_default_machine()
    don't have to deallocate on return.  This permits further
    simplifications.
    
    Signed-off-by: Markus Armbruster <armbru@redhat.com>
    Reviewed-by: Wei Yang <richardw.yang@linux.intel.com>
    Message-Id: <20190405064121.23662-4-richardw.yang@linux.intel.com>
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Markus Armbruster authored and ehabkost committed Apr 18, 2019
    Copy the full SHA
    1fe65ab View commit details
    Browse the repository at this point in the history
  8. vl.c: allocate TYPE_MACHINE list once during bootup

    Now all the functions used to select machine is local and the call flow
    looks like below:
    
        select_machine()
            find_default_machine()
            machine_parse()
                find_machine()
    
    All these related function will need a GSList for TYPE_MACHINE.
    Currently we allocate this list each time we use it, while this is not
    necessary to do so because we don't need to modify this.
    
    This patch make the TYPE_MACHINE list allocation in select_machine and
    pass this to its child for use.
    
    Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
    Reviewed-by: Markus Armbruster <armbru@redhat.com>
    Message-Id: <20190405064121.23662-3-richardw.yang@linux.intel.com>
    Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
    Wei Yang authored and ehabkost committed Apr 18, 2019
    Copy the full SHA
    6df0e07 View commit details
    Browse the repository at this point in the history
Older