Skip to content

pc: remove redundant fw_cfg file "etc/boot-cpus"

Igor Mammedov qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

revert commit 080ac219cc7d9 and redo FW_CFG_NB_CPUS fixes on top of it

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Revert "pc: Add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs"hw/i386/pc.c include/hw/i386/pc.h+15 -311 reply
2/3fw_cfg: move FW_CFG_NB_CPUS out of fw_cfg_init1()hw/arm/virt.c hw/i386/pc.c hw/nvram/fw_cfg.c +4 more+9 -21 reply
3/3pc: fix FW_CFG_NB_CPUS to account for -device added CPUshw/i386/pc.c include/hw/i386/pc.h+27 -176 replies

Reviews trailers per patch

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

PatchEduardo Habkost
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH for-2.8 v2 0/3] pc: remove redundant fw_cfg file "etc/boot-cpus"

Changes since v1:
revert commit 080ac219cc7d9 and redo FW_CFG_NB_CPUS fixes on top of it

Commit 080ac219cc7d9c55adf925c3545b7450055ad625
pc: Add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs

added "etc/boot-cpus" fw_cfg file durung 2.8 merge window, however QEMU alredy had similar legacy FW_CFG_NB_CPUS fw_cfg entry that should do practically the same. Considering FW_CFG_NB_CPUS's been around for a long time and is used by external projects (firmwares) we can't replace it with 'etc/boot-cpus' fw_cfg file.

Drop redundant 'etc/boot-cpus' fw_cfg file and reuse FW_CFG_NB_CPUS instead.

So here goes QEMU part of fixup

CC Eduardo Habkost <[email protected]>
CC "Michael S. Tsirkin" <[email protected]>
CC Stefan Hajnoczi <[email protected]>
CC "Kevin O'Connor" <[email protected]>
CC Gerd Hoffmann <[email protected]>
CC Laszlo Ersek <[email protected]>
CC Alexander Graf <[email protected]>
CC Paolo Bonzini <[email protected]>
CC David Gibson <[email protected]>
CC Mark Cave-Ayland <[email protected]>
CC Artyom Tarasenko <[email protected]>
CC Peter Maydell <[email protected]>
CC Richard Henderson <[email protected]>

Igor Mammedov (3):
Revert "pc: Add 'etc/boot-cpus' fw_cfg file for machine with more than

    255 CPUs"

fw_cfg: move FW_CFG_NB_CPUS out of fw_cfg_init1()
pc: fix FW_CFG_NB_CPUS to account for -device added CPUs

 include/hw/i386/pc.h  |  4 ++--
 hw/arm/virt.c         |  4 +++-
 hw/i386/pc.c          | 24 ++++++++++--------------
 hw/nvram/fw_cfg.c     |  1 -
 hw/ppc/mac_newworld.c |  1 +
 hw/ppc/mac_oldworld.c |  1 +
 hw/sparc/sun4m.c      |  1 +
 hw/sparc64/sun4u.c    |  1 +
 8 files changed, 19 insertions(+), 18 deletions(-)
Signature · 1 line
2.7.4