qemu/qapi
Jean-Louis Dupond cc9f53b3ec qcow2: keep reference on zeroize with discard-no-unref enabled
When the discard-no-unref flag is enabled, we keep the reference for
normal discard requests.
But when a discard is executed on a snapshot/qcow2 image with backing,
the discards are saved as zero clusters in the snapshot image.

When committing the snapshot to the backing file, not
discard_in_l2_slice is called but zero_in_l2_slice. Which did not had
any logic to keep the reference when discard-no-unref is enabled.

Therefor we add logic in the zero_in_l2_slice call to keep the reference
on commit.

Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1621
Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
Message-Id: <20231003125236.216473-2-jean-louis@dupond.be>
[hreitz: Made the documentation change more verbose, as discussed
         on-list]
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
(cherry picked from commit b2b109041ecd1095384f5be5bb9badd13c1cf286)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-11-09 16:39:13 +03:00
..
acpi.json
audio.json
authz.json
block-core.json qcow2: keep reference on zeroize with discard-no-unref enabled 2023-11-09 16:39:13 +03:00
block-export.json
block.json qapi: Reformat recent doc comments to conform to current conventions 2023-07-26 14:51:36 +02:00
char.json qapi: Correct "eg." to "e.g." in documentation 2023-07-25 17:20:32 +03:00
common.json
compat.json
control.json
crypto.json
cryptodev.json
cxl.json qapi: Reformat recent doc comments to conform to current conventions 2023-07-26 14:51:36 +02:00
dump.json
error.json
introspect.json
job.json
machine-target.json qapi: Reformat recent doc comments to conform to current conventions 2023-07-26 14:51:36 +02:00
machine.json
meson.build
migration.json qapi: Craft the dirty-limit capability comment 2023-08-02 09:33:38 +02:00
misc-target.json
misc.json qapi: Correct "eg." to "e.g." in documentation 2023-07-25 17:20:32 +03:00
net.json qapi: Reformat recent doc comments to conform to current conventions 2023-07-26 14:51:36 +02:00
opts-visitor.c
pci.json
pragma.json
qapi-clone-visitor.c
qapi-dealloc-visitor.c
qapi-forward-visitor.c
qapi-schema.json
qapi-type-helpers.c
qapi-util.c
qapi-visit-core.c
qdev.json qapi/qdev: Tidy up device_add documentation 2023-07-26 14:51:36 +02:00
qmp-dispatch.c
qmp-event.c
qmp-registry.c
qobject-input-visitor.c
qobject-output-visitor.c
qom.json qapi: Reformat recent doc comments to conform to current conventions 2023-07-26 14:51:36 +02:00
rdma.json
replay.json
rocker.json
run-state.json
sockets.json
stats.json
string-input-visitor.c
string-output-visitor.c
tpm.json
trace-events
trace.h
trace.json qapi: Reformat recent doc comments to conform to current conventions 2023-07-26 14:51:36 +02:00
transaction.json
ui.json qapi: Reformat recent doc comments to conform to current conventions 2023-07-26 14:51:36 +02:00
virtio.json
yank.json