qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 8301ea: qom/cpu: move cpu_model null check to


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 8301ea: qom/cpu: move cpu_model null check to cpu_class_by...
Date: Tue, 10 Oct 2017 06:39:10 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 8301ea444abb49f7b7fb939b09c1e23b22977f30
      
https://github.com/qemu/qemu/commit/8301ea444abb49f7b7fb939b09c1e23b22977f30
  Author: Philippe Mathieu-Daudé <address@hidden>
  Date:   2017-10-09 (Mon, 09 Oct 2017)

  Changed paths:
    M qom/cpu.c
    M target/alpha/cpu.c
    M target/arm/cpu.c
    M target/cris/cpu.c
    M target/lm32/cpu.c
    M target/m68k/cpu.c
    M target/mips/cpu.c
    M target/moxie/cpu.c
    M target/openrisc/cpu.c
    M target/sh4/cpu.c
    M target/sparc/cpu.c
    M target/tricore/cpu.c
    M target/unicore32/cpu.c
    M target/xtensa/cpu.c

  Log Message:
  -----------
  qom/cpu: move cpu_model null check to cpu_class_by_name()

and clean every implementation.

Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Reviewed-by: Artyom Tarasenko <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: c9cf636d48fcb1d797077e1ffa456a3d324156bc
      
https://github.com/qemu/qemu/commit/c9cf636d48fcb1d797077e1ffa456a3d324156bc
  Author: Alistair Francis <address@hidden>
  Date:   2017-10-09 (Mon, 09 Oct 2017)

  Changed paths:
    M hw/core/machine.c
    M include/hw/boards.h

  Log Message:
  -----------
  machine: Add a valid_cpu_types property

This patch add a MachineClass element that can be set in the machine C
code to specify a list of supported CPU types. If the supported CPU
types are specified the user enter CPU (by -cpu at runtime) is checked
against the supported types and QEMU exits if they aren't supported.

Signed-off-by: Alistair Francis <address@hidden>
Message-Id: <address@hidden>
[ehabkost: removed assert(), rewrote comment]
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 1ea06c398cda2600974860ec7020cbbe9682e382
      
https://github.com/qemu/qemu/commit/1ea06c398cda2600974860ec7020cbbe9682e382
  Author: Eduardo Habkost <address@hidden>
  Date:   2017-10-09 (Mon, 09 Oct 2017)

  Changed paths:
    M vl.c

  Log Message:
  -----------
  vl: Eliminate defconfig variable

Both -nodefconfig and -no-user-config options do the same thing
today, we only need one variable to keep track of them.

Suggested-by: Markus Armbruster <address@hidden>
Acked-by: Alistair Francis <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Daniel P. Berrange <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 3478eae990d0373a5a3614f9293e16ebb50e5cb6
      
https://github.com/qemu/qemu/commit/3478eae990d0373a5a3614f9293e16ebb50e5cb6
  Author: Eduardo Habkost <address@hidden>
  Date:   2017-10-09 (Mon, 09 Oct 2017)

  Changed paths:
    M qemu-doc.texi
    M qemu-options.hx

  Log Message:
  -----------
  qemu-options: Deprecate -nodefconfig

Since 2012 (commit ba6212d8 "Eliminate cpus-x86_64.conf file") we
have no default config files that would be disabled using
-nodefconfig.  Update documentation and document -nodefconfig as
deprecated.

Cc: Markus Armbruster <address@hidden>
Acked-by: Alistair Francis <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Reviewed-by: Daniel P. Berrange <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: e5766d6ec7524345f4c0fa284c065b68c5e93049
      
https://github.com/qemu/qemu/commit/e5766d6ec7524345f4c0fa284c065b68c5e93049
  Author: Eduardo Habkost <address@hidden>
  Date:   2017-10-09 (Mon, 09 Oct 2017)

  Changed paths:
    M block/blkdebug.c
    M util/qemu-config.c

  Log Message:
  -----------
  config: qemu_config_parse() return number of config groups

Change qemu_config_parse() to return the number of config groups
in success and -EINVAL on error. This will allow callers of
qemu_config_parse() to check if something was really loaded from
the config file.

All existing callers of qemu_config_parse() and
qemu_read_config_file() only check if the return value was
negative, so the change shouldn't affect them.

Reviewed-by: Markus Armbruster <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 31b93521924dddb22621f8dba27cdce802406eb3
      
https://github.com/qemu/qemu/commit/31b93521924dddb22621f8dba27cdce802406eb3
  Author: Igor Mammedov <address@hidden>
  Date:   2017-10-09 (Mon, 09 Oct 2017)

  Changed paths:
    M include/qom/object.h

  Log Message:
  -----------
  qom: update doc comment for type_register[_static]()

type_register()/type_register_static() functions in current impl.
can't fail returning 0, also none of the users check for error
so update doc comment to reflect current behaviour.

Suggested-by: Eduardo Habkost <address@hidden>
Signed-off-by: Igor Mammedov <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: c0dd10991903c552811d8cbe9231055b1b3a7ebd
      
https://github.com/qemu/qemu/commit/c0dd10991903c552811d8cbe9231055b1b3a7ebd
  Author: Seeteena Thoufeek <address@hidden>
  Date:   2017-10-09 (Mon, 09 Oct 2017)

  Changed paths:
    M include/sysemu/sysemu.h
    M vl.c

  Log Message:
  -----------
  vl: exit if maxcpus is negative

Signed-off-by: Eduardo Habkost <address@hidden>

---Steps to Reproduce---

When passed a negative number to 'maxcpus' parameter, Qemu aborts
with a core dump.

Run the following command with maxcpus argument as negative number

ppc64-softmmu/qemu-system-ppc64 --nographic -vga none -machine
pseries,accel=kvm,kvm-type=HV -m size=200g -device virtio-blk-pci,
drive=rootdisk -drive file=/home/images/pegas-1.0-ppc64le.qcow2,
if=none,cache=none,id=rootdisk,format=qcow2 -monitor telnet
:127.0.0.1:1234,server,nowait -net nic,model=virtio -net
user -redir tcp:2000::22 -device nec-usb-xhci -smp 8,cores=1,
threads=1,maxcpus=-12

(process:12149): GLib-ERROR **: gmem.c:130: failed to allocate
 18446744073709550568 bytes

Trace/breakpoint trap

Reported-by: R.Nageswara Sastry <address@hidden>
Signed-off-by: Seeteena Thoufeek <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>


  Commit: e0dd5fd41a1a38766009f442967fab700d2d0550
      
https://github.com/qemu/qemu/commit/e0dd5fd41a1a38766009f442967fab700d2d0550
  Author: Todd Eisenberger <address@hidden>
  Date:   2017-10-09 (Mon, 09 Oct 2017)

  Changed paths:
    M target/i386/translate.c

  Log Message:
  -----------
  x86: Correct translation of some rdgsbase and wrgsbase encodings

It looks like there was a transcription error when writing this code
initially.  The code previously only decoded src or dst of rax.  This
resolves
https://bugs.launchpad.net/qemu/+bug/1719984.

Signed-off-by: Todd Eisenberger <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>


  Commit: 567d0a19c7998fa366598b83d5a6e5f0759d3ea9
      
https://github.com/qemu/qemu/commit/567d0a19c7998fa366598b83d5a6e5f0759d3ea9
  Author: Peter Maydell <address@hidden>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M block/blkdebug.c
    M hw/core/machine.c
    M include/hw/boards.h
    M include/qom/object.h
    M include/sysemu/sysemu.h
    M qemu-doc.texi
    M qemu-options.hx
    M qom/cpu.c
    M target/alpha/cpu.c
    M target/arm/cpu.c
    M target/cris/cpu.c
    M target/i386/translate.c
    M target/lm32/cpu.c
    M target/m68k/cpu.c
    M target/mips/cpu.c
    M target/moxie/cpu.c
    M target/openrisc/cpu.c
    M target/sh4/cpu.c
    M target/sparc/cpu.c
    M target/tricore/cpu.c
    M target/unicore32/cpu.c
    M target/xtensa/cpu.c
    M util/qemu-config.c
    M vl.c

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

x86 and machine queue, 2017-10-09

Includes x86, QOM, CPU, and option/config parsing patches.

Highlights:
* Deprecation of -nodefconfig option;
* MachineClass::valid_cpu_types field.

# gpg: Signature made Tue 10 Oct 2017 03:31:33 BST
# gpg:                using RSA key 0x2807936F984DC5A6
# gpg: Good signature from "Eduardo Habkost <address@hidden>"
# Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6

* remotes/ehabkost/tags/x86-and-machine-pull-request:
  x86: Correct translation of some rdgsbase and wrgsbase encodings
  vl: exit if maxcpus is negative
  qom: update doc comment for type_register[_static]()
  config: qemu_config_parse() return number of config groups
  qemu-options: Deprecate -nodefconfig
  vl: Eliminate defconfig variable
  machine: Add a valid_cpu_types property
  qom/cpu: move cpu_model null check to cpu_class_by_name()

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/530049bc1dcc...567d0a19c799

reply via email to

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