All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: "Denis V. Lunev" <den@openvz.org>
To: svt-core@virtuozzo.com
Cc: andrey.drobyshev@virtuozzo.com, den@openvz.org
Subject: [PATCH hci-7.4 0/2] hw/loader: keep the guest's BIOS on reset after vz-cprload #VSTOR-155779
Date: Wed, 18 Nov 2026 12:47:27 +0100	[thread overview]
Message-ID: <20261118114729.2973585-1-den@openvz.org> (raw)

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


             reply	other threads:[~2026-11-18 11:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 11:47 Denis V. Lunev [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261118114729.2973585-1-den@openvz.org \
    --to=den@openvz.org \
    --cc=andrey.drobyshev@virtuozzo.com \
    --cc=svt-core@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.