qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] cdeaed: i386: Add missing cpu feature bits in


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] cdeaed: i386: Add missing cpu feature bits in EPYC-Rome model
Date: Sun, 11 Apr 2021 05:01:33 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: cdeaed27782835a875df7365d56d69dbe7250481
      
https://github.com/qemu/qemu/commit/cdeaed27782835a875df7365d56d69dbe7250481
  Author: Babu Moger <babu.moger@amd.com>
  Date:   2021-04-09 (Fri, 09 Apr 2021)

  Changed paths:
    M target/i386/cpu.c

  Log Message:
  -----------
  i386: Add missing cpu feature bits in EPYC-Rome model

Found the following cpu feature bits missing from EPYC-Rome model.
ibrs    : Indirect Branch Restricted Speculation
ssbd    : Speculative Store Bypass Disable

These new features will be added in EPYC-Rome-v2. The -cpu help output
after the change.

x86 EPYC-Rome             (alias configured by machine type)
x86 EPYC-Rome-v1          AMD EPYC-Rome Processor
x86 EPYC-Rome-v2          AMD EPYC-Rome Processor

Reported-by: Pankaj Gupta <pankaj.gupta@cloud.ionos.com>
Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Pankaj Gupta <pankaj.gupta@cloud.ionos.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: David Edmondson <david.edmondson@oracle.com>
Message-Id: <161478622280.16275.6399866734509127420.stgit@bmoger-ubuntu>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>


  Commit: 0b47ec4b95ad1952e55e639711d442f8ec6e1345
      
https://github.com/qemu/qemu/commit/0b47ec4b95ad1952e55e639711d442f8ec6e1345
  Author: Greg Kurz <groug@kaod.org>
  Date:   2021-04-09 (Fri, 09 Apr 2021)

  Changed paths:
    M hw/cpu/core.c

  Log Message:
  -----------
  cpu/core: Fix "help" of CPU core device types

Calling qdev_get_machine() from a QOM instance_init function is
fragile because we can't be sure the machine object actually
exists. And this happens to break when passing ",help" on the
command line to get the list of properties for a CPU core
device types :

$ ./qemu-system-ppc64 -device power8_v2.0-spapr-cpu-core,help
qemu-system-ppc64: ../../hw/core/machine.c:1290:
 qdev_get_machine: Assertion `machine != NULL' failed.
Aborted (core dumped)

This used to work before QEMU 5.0, but commit 3df261b6676b
unwillingly introduced a subtle regression : the above command
line needs to create an instance but the instance_init function
of the base class calls qdev_get_machine() before
qemu_create_machine() has been called, which is a programming bug.

Use current_machine instead. It is okay to skip the setting of
nr_thread in this case since only its type is displayed.

Fixes: 3df261b6676b ("softmmu/vl.c: Handle '-cpu help' and '-device help' 
before 'no default machine'")
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
Cc: peter.maydell@linaro.org
Message-Id: <20210409160339.500167-3-groug@kaod.org>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>


  Commit: 555249a59e9cdd6b58da103aba5cf3a2d45c899f
      
https://github.com/qemu/qemu/commit/555249a59e9cdd6b58da103aba5cf3a2d45c899f
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-04-10 (Sat, 10 Apr 2021)

  Changed paths:
    M hw/cpu/core.c
    M target/i386/cpu.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/ehabkost-gl/tags/x86-next-pull-request' 
into staging

x86 and CPU bug fixes for 6.0-rc3

* Add missing features to EPYC-Rome CPU model (Babu Moger)
* Fix crash with "-device ...-cpu-core,help" (Greg Kurz)

# gpg: Signature made Fri 09 Apr 2021 21:20:18 BST
# gpg:                using RSA key 5A322FD5ABC4D3DBACCFD1AA2807936F984DC5A6
# gpg:                issuer "ehabkost@redhat.com"
# gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>" [full]
# Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6

* remotes/ehabkost-gl/tags/x86-next-pull-request:
  cpu/core: Fix "help" of CPU core device types
  i386: Add missing cpu feature bits in EPYC-Rome model

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


Compare: https://github.com/qemu/qemu/compare/836b36af9340...555249a59e9c



reply via email to

[Prev in Thread] Current Thread [Next in Thread]