mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
apply_dealloc_action() discarded the result of the host punch-hole and write-zeroes operations, so a guest DISCARD or WRITE ZEROES request completed successfully even when the host operation failed. Return the error to the per-queue engine and complete the request with an error instead, in both the synchronous and io_uring QCOW engines. A failure does not abort the remaining actions of the request: they are still applied, and the first error is reported. Signed-off-by: doge <me@crackerben.com>