qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eduardo Habkost <ehabkost@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Jiri Denemark" <jdenemar@redhat.com>,
	"Andreas Färber" <afaerber@suse.de>,
	"Igor Mammedov" <imammedo@redhat.com>,
	libvir-list@redhat.com,
	"David Hildenbrand" <dahi@linux.vnet.ibm.com>,
	"Michael Mueller" <mimu@linux.vnet.ibm.com>,
	"Christian Borntraeger" <borntraeger@de.ibm.com>,
	"Cornelia Huck" <cornelia.huck@de.ibm.com>
Subject: [Qemu-devel] [PATCH v2 0/6] Add runnability info to query-cpu-definitions
Date: Mon,  6 Jun 2016 17:05:37 -0300	[thread overview]
Message-ID: <1465243543-889-1-git-send-email-ehabkost@redhat.com> (raw)

This series extends query-cpu-definitions to include an extra
field: "unavailable-features". The new field can be used to find
out reasons that prevent the CPU model from running in the
current host.

This will return information based on the current machine and
accelerator only. In the future we may extend these mechanisms to
allow querying other machines and other accelerators without
restarting QEMU, but it will require some reorganization of
QEMU's main code.

This series is based on my 'x86-next' branch, at:
  git://github.com/ehabkost/qemu.git x86-next

Changes v1 -> v2:
* Fixed documentation to say "(since 2.7)"
* Removed @runnable field, improved documentation

Example command output:

  { "return": [
      {
        "unavailable-features": [ "kvm" ],
         "name": "host"
      },
      {
        "unavailable-features": [],
        "name": "qemu64"
      },
      {
        "unavailable-features": [],
        "name": "qemu32"
      },
      {
        "unavailable-features": ["npt", "fxsr-opt", "vme"],
        "name": "phenom"
      },
      {
        "unavailable-features": ["vme"],
        "name": "pentium3"
      },
      {
        "unavailable-features": ["vme"],
        "name": "pentium2"
      },
      {
        "unavailable-features": ["vme"],
        "name": "pentium"
      },
      {
        "unavailable-features": ["vme"],
        "name": "n270"
      },
      {
        "unavailable-features": ["vme"],
        "name": "kvm64"
      },
      {
        "unavailable-features": ["vme"],
        "name": "kvm32"
      },
      {
        "unavailable-features": ["vme"],
        "name": "coreduo"
      },
      {
        "unavailable-features": ["vme"],
        "name": "core2duo"
      },
      {
        "unavailable-features": ["vme"],
        "name": "athlon"
      },
      {
        "unavailable-features": ["vme"],
        "name": "Westmere"
      },
      {
        "unavailable-features": ["xsavec", "3dnowprefetch", "rdseed", "rtm", "invpcid", "erms", "avx2", "hle", "rdrand", "f16c", "avx", "tsc-deadline", "x2apic", "pcid", "fma", "vme"],
        "name": "Skylake-Client"
      },
      {
        "unavailable-features": ["avx", "tsc-deadline", "x2apic", "vme"],
        "name": "SandyBridge"
      },
      {
        "unavailable-features": ["vme"],
        "name": "Penryn"
      },
      {
        "unavailable-features": ["tbm", "fma4", "xop", "3dnowprefetch", "misalignsse", "f16c", "avx", "fma", "vme"],
        "name": "Opteron_G5"
      },
      {
        "unavailable-features": ["fma4", "xop", "3dnowprefetch", "misalignsse", "avx", "vme"],
        "name": "Opteron_G4"
      },
      {
        "unavailable-features": ["misalignsse", "vme"],
        "name": "Opteron_G3"
      },
      {
        "unavailable-features": ["vme"],
        "name": "Opteron_G2"
      },
      {
        "unavailable-features": ["vme"],
        "name": "Opteron_G1"
      },
      {
        "unavailable-features": ["vme"],
        "name": "Nehalem"
      },
      {
        "unavailable-features": ["erms", "rdrand", "f16c", "avx", "tsc-deadline", "x2apic", "vme"],
        "name": "IvyBridge"
      },
      {
        "unavailable-features": ["rtm", "invpcid", "erms", "avx2", "hle", "rdrand", "f16c", "avx", "tsc-deadline", "x2apic", "pcid", "fma", "vme"],
        "name": "Haswell"
      },
      {
        "unavailable-features": ["invpcid", "erms", "avx2", "rdrand", "f16c", "avx", "tsc-deadline", "x2apic", "pcid", "fma", "vme"],
        "name": "Haswell-noTSX"
      },
      {
        "unavailable-features": ["vme"],
        "name": "Conroe"
      },
      {
        "unavailable-features": ["3dnowprefetch", "rdseed", "rtm", "invpcid", "erms", "avx2", "hle", "rdrand", "f16c", "avx", "tsc-deadline", "x2apic", "pcid", "fma", "vme"],
        "name": "Broadwell"
      },
      {
        "unavailable-features": ["3dnowprefetch", "rdseed", "invpcid", "erms", "avx2", "rdrand", "f16c", "avx", "tsc-deadline", "x2apic", "pcid", "fma", "vme"],
        "name": "Broadwell-noTSX"
      },
      {
        "unavailable-features": ["vme"],
        "name": "486"
      }
  ]}

Cc: David Hildenbrand <dahi@linux.vnet.ibm.com>
Cc: Michael Mueller <mimu@linux.vnet.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Jiri Denemark <jdenemar@redhat.com>
Cc: libvir-list@redhat.com

Eduardo Habkost (6):
  target-i386: List CPU models using subclass list
  target-i386: Move warning code outside x86_cpu_filter_features()
  target-i386: Define CPUID filtering functions before x86_cpu_list()
  qmp: Add runnability information to query-cpu-definitions
  target-i386: Use "-" instead of "_" on all feature names
  target-i386: Return runnability information on query-cpu-definitions

 qapi-schema.json      |  23 ++++-
 target-i386/cpu-qom.h |   4 +
 target-i386/cpu.c     | 262 +++++++++++++++++++++++++++++++++++---------------
 3 files changed, 209 insertions(+), 80 deletions(-)

-- 
2.5.5

             reply	other threads:[~2016-06-06 20:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-06 20:05 Eduardo Habkost [this message]
2016-06-06 20:05 ` [Qemu-devel] [PATCH v2 1/6] target-i386: List CPU models using subclass list Eduardo Habkost
2016-06-06 20:05 ` [Qemu-devel] [PATCH v2 2/6] target-i386: Move warning code outside x86_cpu_filter_features() Eduardo Habkost
2016-06-06 20:05 ` [Qemu-devel] [PATCH v2 3/6] target-i386: Define CPUID filtering functions before x86_cpu_list() Eduardo Habkost
2016-06-06 20:05 ` [Qemu-devel] [PATCH v2 4/6] qmp: Add runnability information to query-cpu-definitions Eduardo Habkost
2016-06-09 13:54   ` Jiri Denemark
2016-06-09 13:57     ` Eduardo Habkost
2016-06-22  9:00   ` Markus Armbruster
2016-06-22 17:15     ` Eduardo Habkost
2016-06-23  7:10       ` Markus Armbruster
2016-06-06 20:05 ` [Qemu-devel] [PATCH v2 5/6] target-i386: Use "-" instead of "_" on all feature names Eduardo Habkost
2016-06-06 20:05 ` [Qemu-devel] [PATCH v2 6/6] target-i386: Return runnability information on query-cpu-definitions Eduardo Habkost
2016-06-20 20:09 ` [Qemu-devel] [PATCH v2 0/6] Add runnability info to query-cpu-definitions Eduardo Habkost
2016-06-21 13:16   ` Jiri Denemark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1465243543-889-1-git-send-email-ehabkost@redhat.com \
    --to=ehabkost@redhat.com \
    --cc=afaerber@suse.de \
    --cc=borntraeger@de.ibm.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=dahi@linux.vnet.ibm.com \
    --cc=imammedo@redhat.com \
    --cc=jdenemar@redhat.com \
    --cc=libvir-list@redhat.com \
    --cc=mimu@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).