All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
* [PATCH hci-7.4 0/2] hw/loader: keep the guest's BIOS on reset after vz-cprload #VSTOR-155779
@ 2026-11-18 11:47 Denis V. Lunev
  2026-11-18 11:47 ` [PATCH hci-7.4 1/2] hw/loader: stop rom_reset() overwriting the BIOS " Denis V. Lunev
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Denis V. Lunev @ 2026-11-18 11:47 UTC (permalink / raw)
  To: svt-core; +Cc: andrey.drobyshev, den

hci-7.4 has the bug fixed on hci-8.0/8.1 in VSTOR-155779 as well. Since
8883d1305f1 rom_reset() returns early while a cpr restart is in
progress, so the restarted QEMU keeps the host's BIOS image and writes
it into pc.bios on the first guest reset after vz-cprload. A VM whose
node got a new seabios-bin after the VM started then pauses on reboot
with "KVM internal error. Suberror: 1".

  https://virtuozzo.atlassian.net/browse/VSTOR-155779

The fix differs from hci-8.0/8.1 only in the check. The restarted QEMU
starts in RUN_STATE_CPR_POSTEXEC, not INMIGRATE, so the early return
cannot simply go: the startup reset would write the ROMs over the
preserved RAM again. Patch 1 makes rom_reset() treat a cpr restart like
an incoming migration instead. Patch 2 adds the same BIOS-swap case to
vz-cpr as on hci-8.0/8.1.

Tested on dev-cl04: vz-cpr passes, and with patch 1 reverted only the
new case fails, with the new image in the ROM.

Denis V. Lunev (2):
  hw/loader: stop rom_reset() overwriting the BIOS after vz-cprload
    #VSTOR-155779
  iotests/vz-cpr: cover a guest reset with a new BIOS file #VSTOR-155779

 hw/core/loader.c                    | 12 +++------
 tests/qemu-iotests/tests/vz-cpr     | 42 ++++++++++++++++++++++++++++-
 tests/qemu-iotests/tests/vz-cpr.out |  4 +--
 3 files changed, 47 insertions(+), 11 deletions(-)


base-commit: 31d8e05b43806b8a997660f1bc92eae6373602ea
-- 
2.55.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-18 14:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18 11:47 [PATCH hci-7.4 0/2] hw/loader: keep the guest's BIOS on reset after vz-cprload #VSTOR-155779 Denis V. Lunev
2026-11-18 11:47 ` [PATCH hci-7.4 1/2] hw/loader: stop rom_reset() overwriting the BIOS " Denis V. Lunev
2026-11-18 11:51   ` no-reply
2026-11-18 11:47 ` [PATCH hci-7.4 2/2] iotests/vz-cpr: cover a guest reset with a new BIOS file #VSTOR-155779 Denis V. Lunev
2026-11-18 11:50   ` no-reply
2026-11-18 14:11 ` [PATCH hci-7.4 0/2] hw/loader: keep the guest's BIOS on reset after vz-cprload #VSTOR-155779 Andrey Drobyshev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.