This is the minimal high watermark implementation that is needed to allow clients to poll the value. I hope everyone can live with this solution now.
The second patch of this series is optional. It breaks clients that consider the user monitor a stable API. They should be using QMP, but I'm not sure if we want to break compatibility on the user monitor today. Kevin Wolf (2): block: Add wr_highest_sector blockstat block: Extend info blockstats monitor command block.c | 103 ++++++++++++++++++++++++++++++++++++++++++++-------------- block_int.h | 1 + qdict.c | 2 +- 3 files changed, 80 insertions(+), 26 deletions(-)