[PATCH qemu-server 0/2] set write threshold logic

Tiago Sousa joao.sousa at eurotux.com
Sat Aug 2 18:42:38 CEST 2025


Hello,

I'm looking for some assistance in understanding why the block_write_threshold
is not being set as expected.

When the VM starts and I run the query-named-block-nodes command, the
write_threshold value always appears as the default 0. However, if I set it
manually through the QMP socket after startup, the threshold is applied
correctly.

Is the attach function not the appropriate place to set this value? If not,
could you clarify the correct point in the VM startup sequence to set it? I
had assumed it would be applied during blockdev_add, but that doesn't seem
to be the case.

Any guidance would be appreciated.

Tiago Sousa (2):
  blockdev: add set write threshold
  qmeventd: add block write threshold event handling

 src/PVE/QemuServer/Blockdev.pm | 52 ++++++++++++++++++++++++++++++++++
 src/qmeventd/qmeventd.c        | 19 +++++++++++++
 2 files changed, 71 insertions(+)

--
2.39.5




More information about the pve-devel mailing list