]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Install backing store terminators for 'pflash' blockdevs
authorPeter Krempa <pkrempa@redhat.com>
Mon, 4 Nov 2024 16:45:54 +0000 (17:45 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 15 Nov 2024 08:42:03 +0000 (09:42 +0100)
commitd57630c282ae7220d8998f74b7e4fec21841797f
tree8b7ff3709160556b1ffa2a7f4dbc783943c7fd14
parent6a8bcd111012034cb4fc9a44b1760f6c6562d9af
qemu: Install backing store terminators for 'pflash' blockdevs

The qemu driver does support qcow2 images for the firmware and nvram
pflash devices, but we do not do the full backing chain setup for them
as we don't expect that those images would actually have a backing
store. We don't tell that to qemu though which theoretically can lead to
qemu probing the backing store from the image itself. We don't want that
for now.

Deny qemu probing the backing store by installing a "terminator" empty
virStorageSource as 'backingStore' for pflash and nvram.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c
tests/qemuxmlconfdata/firmware-auto-efi-aarch64.aarch64-latest.abi-update.args
tests/qemuxmlconfdata/firmware-auto-efi-format-loader-qcow2-nvram-path.x86_64-latest.args
tests/qemuxmlconfdata/firmware-auto-efi-format-loader-qcow2.x86_64-latest.args
tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-qcow2-network-nbd.x86_64-latest.args
tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-qcow2-path.x86_64-latest.args
tests/qemuxmlconfdata/firmware-auto-efi-format-nvram-qcow2.x86_64-latest.args
tests/qemuxmlconfdata/firmware-auto-efi-loader-secure.x86_64-latest.abi-update.args
tests/qemuxmlconfdata/firmware-auto-efi-riscv64.riscv64-latest.abi-update.args
tests/qemuxmlconfdata/firmware-auto-efi.x86_64-latest.abi-update.args