qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kashyap Chamarthy <kchamart@redhat.com>
To: qemu-devel@nongnu.org
Cc: berrange@redhat.com, ehabkost@redhat.com
Subject: On versioned CPU models, aliases, and machine types
Date: Fri, 15 Oct 2021 12:52:50 +0200	[thread overview]
Message-ID: <YWldgo3j6KEFpVvL@paraplu> (raw)

Hi

With the versioned CPU models, I see that the plain, non-versioned named
model now says: "alias configured by machine type".  For example:

    $> qemu-system-x86_64 -cpu help | grep Broadwell
    x86 Broadwell             (alias configured by machine type)                        
    x86 Broadwell-IBRS        (alias of Broadwell-v3)                                   
    x86 Broadwell-noTSX       (alias of Broadwell-v2)                                   
    x86 Broadwell-noTSX-IBRS  (alias of Broadwell-v4)                                   
    x86 Broadwell-v1          Intel Core Processor (Broadwell)                          
    x86 Broadwell-v2          Intel Core Processor (Broadwell, no TSX)                  
    x86 Broadwell-v3          Intel Core Processor (Broadwell, IBRS)                    
    x86 Broadwell-v4          Intel Core Processor (Broadwell, no TSX, IBRS)     

Now, any QEMU binary (qemu-system-x86-6.0.0-1 in my case) supports a ton
of versioned machine types.  So when the plain "Broadwell" model says
"alias configured by machine type", I have two questions:

(1) Is there a way to figure out _which_ exact versioned CPU model will
    plain "Broadwell" alias to in the above case?  

    My guess: Assuming I'm using the plain 'q35' machine type (which
    aliases to the latest versioned machine type), "Broadwell" will
    alias to "Broadwell-v4".

(2) Also, it sounds like depending on the versioned machine type I
    configure, the CPU model alias of plain "Broadwell" might change --
    is this correct?


(Ideally, I'd like to document an example of each of the above in the
in-tree doc, cpu-models-x86.rst.inc.  It's not really obvious.)

-- 
/kashyap



                 reply	other threads:[~2021-10-15 10:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=YWldgo3j6KEFpVvL@paraplu \
    --to=kchamart@redhat.com \
    --cc=berrange@redhat.com \
    --cc=ehabkost@redhat.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).