1. 23 6月, 2018 6 次提交
    • E
      i386: Remove osxsave CPUID flag name · f1a23522
      Eduardo Habkost 提交于
      OSXAVE is not a static feature flag: it changes dynamically at
      runtime depending on CR4, and it was never configurable: KVM
      never returned OSXSAVE on GET_SUPPORTED_CPUID, and it is not
      included in TCG_EXT_FEATURES.
      
      Remove OSXSAVE from the feature name array so users don't try to
      configure it manually.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <20180611203855.13269-1-ehabkost@redhat.com>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      f1a23522
    • D
      i386: display known CPUID features linewrapped, in alphabetical order · cc643b1e
      Daniel P. Berrangé 提交于
      When using '-cpu help' the list of CPUID features is grouped according
      to the internal low level CPUID grouping. The data printed results in
      very long lines too.
      
      This combines to make it hard for users to read the output and identify
      if QEMU knows about the feature they wish to use.
      
      This change gets rid of the grouping of features and treats all flags as
      single list. The list is sorted into alphabetical order and the printing
      with line wrapping at the 77th column.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      Message-Id: <20180606165527.17365-4-berrange@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      cc643b1e
    • D
      i386: improve sorting of CPU model names · c7dbff4b
      Daniel P. Berrangé 提交于
      The current list of CPU model names output by "-cpu help" is sorted
      alphabetically based on the internal QOM class name. The text that is
      displayed, however, uses the CPU model name, which is equivalent to the
      QOM class name, minus a suffix. Unfortunately that suffix has an effect
      on the sort ordering, for example, causing the various Broadwell
      variants to appear reversed:
      
        x86 486
        x86 Broadwell-IBRS        Intel Core Processor (Broadwell, IBRS)
        x86 Broadwell-noTSX-IBRS  Intel Core Processor (Broadwell, no TSX, IBRS
        x86 Broadwell-noTSX       Intel Core Processor (Broadwell, no TSX)
        x86 Broadwell             Intel Core Processor (Broadwell)
        x86 Conroe                Intel Celeron_4x0 (Conroe/Merom Class Core 2)
      
      By sorting on the actual CPU model name text that is displayed, the
      result is
      
        x86 486
        x86 Broadwell             Intel Core Processor (Broadwell)
        x86 Broadwell-IBRS        Intel Core Processor (Broadwell, IBRS)
        x86 Broadwell-noTSX       Intel Core Processor (Broadwell, no TSX)
        x86 Broadwell-noTSX-IBRS  Intel Core Processor (Broadwell, no TSX, IBRS)
        x86 Conroe                Intel Celeron_4x0 (Conroe/Merom Class Core 2)
      
      This requires extra string allocations during sorting, but this is not a
      concern given the usage scenario and the number of CPU models that exist.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      Message-Id: <20180606165527.17365-3-berrange@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      c7dbff4b
    • D
      i386: improve alignment of CPU model listing · 081492ca
      Daniel P. Berrangé 提交于
      Since the addition of the -IBRS CPU model variants, the descriptions
      shown by '-cpu help' are not well aligned, as several model names
      overflow the space allowed. Right aligning the CPU model names is also
      not attractive, because it obscures the common name prefixes of many
      models. The CPU model name field needs to be 4 characters larger, and
      be left aligned instead.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      Message-Id: <20180606165527.17365-2-berrange@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      081492ca
    • B
      i386: Add support for CPUID_8000_001E for AMD · ed78467a
      Babu Moger 提交于
      Add support for cpuid leaf CPUID_8000_001E. Build the config that closely
      match the underlying hardware. Please refer to the Processor Programming
      Reference (PPR) for AMD Family 17h Model for more details.
      Signed-off-by: NBabu Moger <babu.moger@amd.com>
      Message-Id: <1528498581-131037-2-git-send-email-babu.moger@amd.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      ed78467a
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2018-06-22' into staging · 7ed14cbf
      Peter Maydell 提交于
      QAPI patches for 2018-06-22
      
      # gpg: Signature made Fri 22 Jun 2018 15:36:22 BST
      # gpg:                using RSA key 3870B400EB918653
      # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>"
      # gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>"
      # Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867  4E5F 3870 B400 EB91 8653
      
      * remotes/armbru/tags/pull-qapi-2018-06-22:
        MAINTAINERS: Update QAPI stanza for commit fb0bc835
        qapi/introspect: Eliminate pointless variable in .visit_end()
        Revert commit d4e5ec87
        qapi: Open files with encoding='utf-8'
        qapi: remove empty flat union branches and types
        qapi: allow empty branches in flat unions
        tests: Add QDict clone-flatten test
        qdict: Make qdict_flatten() shallow-clone-friendly
        qapi/events: generate event enum in main module
        qapi/visit: remove useless prefix argument
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7ed14cbf
  2. 22 6月, 2018 34 次提交