Skip to content

-boot and -no-fd-bootchk fixes

Markus Armbruster qemu-devel 1 version Applied

Status from this message: Applied. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest16 patches 22 repliesApplied

Changes in v3 from the cover letter

* Rebased, with only trivial conflicts
* PATCH 08 cosmetic improvements
* More test cases: new PATCH 09-16

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/16vl: Clean up parsing of -boot option argumentvl.c+22 -621 reply
2/16qemu-option: check_params() is now unused, drop itinclude/qemu/option.h util/qemu-option.c+0 -321 reply
3/16vl: Fix -boot order and once regressions, and related bugsvl.c+30 -291 reply
4/16vl: Rename *boot_devices to *boot_order, for consistencyinclude/hw/hw.h vl.c+10 -101 reply
5/16pc: Make -no-fd-bootchk stick across boot order changeshw/i386/pc.c+3 -43 replies
6/16doc: Drop ref to Bochs from -no-fd-bootchk documentationqemu-options.hx+1 -21 reply
7/16qtest: Don't reset on qtest chardev connectqtest.c+6 -12 replies
8/16boot-order-test: New; covering just PC for nowtests/Makefile tests/boot-order-test.c+70 -04 replies
9/16boot-order-test: Add tests for PowerMacstests/Makefile tests/boot-order-test.c+67 -11 reply
10/16boot-order-test: Cover -boot once in ppc teststests/boot-order-test.c+1 -01 reply
11/16boot-order-test: Better separate target-specific and generic partstests/boot-order-test.c+99 -611 reply
12/16boot-order-test: Code motion for better readabilitytests/boot-order-test.c+24 -240 replies
13/16boot-order-test: Add tests for PowerPC PREPtests/boot-order-test.c+27 -00 replies
14/16boot-order-test: Add tests for Sun4mtests/boot-order-test.c+14 -00 replies
15/16boot-order-test: Support fw_cfg in I/O spacetests/boot-order-test.c+16 -84 replies
16/16boot-order-test: Add tests for Sun4utests/boot-order-test.c+14 -00 replies

Reviews trailers per patch

8 of 16 patches have a Reviewed-by or Acked-by.

PatchAnthony Liguori
1/16R-b
2/16R-b
3/16R-b
4/16R-b
5/16R-b
6/16R-b
7/16R-b
8/16
9/16
10/16R-b
11/16
12/16
13/16
14/16
15/16
16/16

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 00/16] -boot and -no-fd-bootchk fixes

This has been rotting in my tree since February. Sorry about that.

I'm afraid -boot regressed in 1.4, specifically commit e4ada29e. This series fixes it, along with related bugs, and tops off with tests.

PATCH 01-03 fix the regression, PATCH 04 cleans up afterwards. I'm refraining from nominating them for stable, because we regressed quite some time ago, and the fix isn't exactly minimal.

PATCH 05 makes -no-fd-bootchk behave more sanely, and PATCH 06 fixes up docs. The case for stable is even weaker here: the old behavior hasn't changed in quite a few releases, and nobody complained.

PATCH 07 tweaks qtest to make testing -boot once possible. The remaining patches add tests.

v3:
* Rebased, with only trivial conflicts
* PATCH 08 cosmetic improvements
* More test cases: new PATCH 09-16
v2:
* New PATCH 7 to make testing -boot once possible
* Old PATCH 5 reworked and extended became PATCH 8
* Writing more tests uncovered -no-fd-bootchk weirdness, cleaned up in new PATCH 5+6

Andreas Färber (1):
boot-order-test: Add tests for PowerMacs

Markus Armbruster (15):
vl: Clean up parsing of -boot option argument
qemu-option: check_params() is now unused, drop it
vl: Fix -boot order and once regressions, and related bugs
vl: Rename *boot_devices to *boot_order, for consistency
pc: Make -no-fd-bootchk stick across boot order changes
doc: Drop ref to Bochs from -no-fd-bootchk documentation
qtest: Don't reset on qtest chardev connect
boot-order-test: New; covering just PC for now
boot-order-test: Cover -boot once in ppc tests
boot-order-test: Better separate target-specific and generic parts
boot-order-test: Code motion for better readability
boot-order-test: Add tests for PowerPC PREP
boot-order-test: Add tests for Sun4m
boot-order-test: Support fw_cfg in I/O space
boot-order-test: Add tests for Sun4u

 hw/i386/pc.c            |   7 +-
 include/hw/hw.h         |   4 +-
 include/qemu/option.h   |   2 -
 qemu-options.hx         |   3 +-
 qtest.c                 |   7 +-
 tests/Makefile          |   4 +
 tests/boot-order-test.c | 234 ++++++++++++++++++++++++++++++++++++++++++++++++
 util/qemu-option.c      |  30 -------
 vl.c                    | 121 +++++++++----------------
 9 files changed, 291 insertions(+), 121 deletions(-)
 create mode 100644 tests/boot-order-test.c
Signature · 1 line
1.7.11.7