Skip to content

Delete 16 *_cpu_class_by_name() functions

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 of 17 patches 1 replyIn review

6 of 17 patches are in this archive. The cover letter announces 17.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17hw: add compat machines for 4.1hw/arm/virt.c hw/core/machine.c hw/i386/pc.c +6 more+71 -60 replies
2/17vl.c: make find_default_machine() localinclude/hw/boards.h vl.c+1 -20 replies
3/17vl.c: allocate TYPE_MACHINE list once during bootupvl.c+11 -130 replies
4/17vl: Clean up after previous commitvl.c+8 -170 replies
5/17vl: Simplify machine_parse()vl.c+10 -120 replies
6/17cpu: Rename parse_cpu_model() to parse_cpu_option()bsd-user/main.c exec.c include/qom/cpu.h +2 more+16 -160 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchGreg KurzDavid GibsonMarkus ArmbrusterWei YangIgor Mammedov
1/17A-b A-b
2/17R-b
3/17R-b
4/17R-b
5/17R-b
6/17R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/17] Delete 16 *_cpu_class_by_name() functions

This series adds a new CPUClass::class_name_format field, which allows us to delete 16 of the 21 *_cpu_class_by_name() functions that exist today.

Cornelia Huck (1):
hw: add compat machines for 4.1

Eduardo Habkost (9):
cpu: Rename parse_cpu_model() to parse_cpu_option()
cpu: Fix crash with empty -cpu option
cpu: Change return type of cpu_class_by_name() to CPUClass
riscv: Don't split CPU model string
arm: Don't split CPU model string
arm: Remove special case for "any" CPU model
cpu: Let architectures set CPU class name format
cpu: Set class name format for some architectures
cpu: Set fixed class name on some architectures

Markus Armbruster (2):
vl: Clean up after previous commit
vl: Simplify machine_parse()

Wei Yang (2):
vl.c: make find_default_machine() local vl.c: allocate TYPE_MACHINE list once during bootup

Zhang Yi (3):
util/mmap-alloc: Add a 'is_pmem' parameter to qemu_ram_mmap scripts/update-linux-headers: add linux/mman.h
linux-headers: add linux/mman.h.

 include/hw/boards.h                        |   4 +-
 include/hw/i386/pc.h                       |   3 +
 include/qemu/mmap-alloc.h                  |  21 +++-
 include/qom/cpu.h                          |  20 +++-
 linux-headers/asm-arm/mman.h               |   4 +
 linux-headers/asm-arm64/mman.h             |   1 +
 linux-headers/asm-generic/hugetlb_encode.h |  36 +++++++
 linux-headers/asm-generic/mman-common.h    |  77 +++++++++++++++
 linux-headers/asm-generic/mman.h           |  24 +++++
 linux-headers/asm-mips/mman.h              | 108 +++++++++++++++++++++
 linux-headers/asm-powerpc/mman.h           |  39 ++++++++
 linux-headers/asm-s390/mman.h              |   1 +
 linux-headers/asm-x86/mman.h               |  31 ++++++
 linux-headers/linux/mman.h                 |  38 ++++++++
 target/s390x/internal.h                    |   1 -
 bsd-user/main.c                            |   2 +-
 exec.c                                     |  18 ++--
 hw/arm/virt.c                              |   9 +-
 hw/core/machine.c                          |   3 +
 hw/i386/pc.c                               |   3 +
 hw/i386/pc_piix.c                          |  14 ++-
 hw/i386/pc_q35.c                           |  13 ++-
 hw/ppc/spapr.c                             |  15 ++-
 hw/s390x/s390-virtio-ccw.c                 |  14 ++-
 linux-user/main.c                          |   2 +-
 qom/cpu.c                                  |  20 +++-
 target/arm/cpu.c                           |  30 +-----
 target/hppa/cpu.c                          |   8 +-
 target/i386/cpu.c                          |  11 +--
 target/lm32/cpu.c                          |  17 +---
 target/m68k/cpu.c                          |  17 +---
 target/microblaze/cpu.c                    |   8 +-
 target/mips/cpu.c                          |  13 +--
 target/moxie/cpu.c                         |  17 +---
 target/nios2/cpu.c                         |   8 +-
 target/openrisc/cpu.c                      |  17 +---
 target/riscv/cpu.c                         |  20 +---
 target/s390x/cpu.c                         |   2 +-
 target/s390x/cpu_models.c                  |  20 +---
 target/tilegx/cpu.c                        |   8 +-
 target/tricore/cpu.c                       |  17 +---
 target/unicore32/cpu.c                     |  17 +---
 target/xtensa/cpu.c                        |  17 +---
 util/mmap-alloc.c                          |   6 +-
 util/oslib-posix.c                         |   2 +-
 vl.c                                       |  87 +++++++----------
 scripts/update-linux-headers.sh            |   6 +-
 47 files changed, 566 insertions(+), 303 deletions(-)
 create mode 100644 linux-headers/asm-arm/mman.h
 create mode 100644 linux-headers/asm-arm64/mman.h
 create mode 100644 linux-headers/asm-generic/hugetlb_encode.h
 create mode 100644 linux-headers/asm-generic/mman-common.h
 create mode 100644 linux-headers/asm-generic/mman.h
 create mode 100644 linux-headers/asm-mips/mman.h
 create mode 100644 linux-headers/asm-powerpc/mman.h
 create mode 100644 linux-headers/asm-s390/mman.h
 create mode 100644 linux-headers/asm-x86/mman.h
 create mode 100644 linux-headers/linux/mman.h
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140