[pve-devel] [PATCH qemu-server 0/2] set write threshold logic
Joao Sousa
joao.sousa at eurotux.com
Mon Aug 11 22:34:34 CEST 2025
On 8/4/25 10:14 AM, Fiona Ebner wrote:
> blockdev_add()/Blockdev::attach() are only called for hot-plugged disks,
> not disks already present at start-up time. You either need to set the
> threshold as part of the blockdev options in the generate_*_blockdev()
> functions (if that is possible, would be preferred) or issue the QMP
> commands for the initially present disks right after VM start (in
> vm_start_nolock(), we already do something similar for ballooning).
AFAIK the write threshold cannot be set when the blockdev is created, at
least for now. As you suggested, I was able to loop over every volume in
vm_start_lock() and the threshold is being set correctly.
Thanks!
Best regards,
Tiago
More information about the pve-devel
mailing list