Later, a mechanism to set a limit on how much memory may be used for the
overlap prevention structures will be introduced. If that limit is about
to be exceeded, a QMP event should be emitted. This very event is
specified by this patch.
Signed-off-by: Max Reitz <address@hidden>
---
docs/qmp/qmp-events.txt | 28 ++++++++++++++++++++++++++++
qapi/event.json | 27 +++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
+
+Data:
+- "reference": Device name if set; node name otherwise. (json-string)
+- "start": Offset of the range of clusters (possibly) no longer being
+ checked for writes overlapping with existing metadata.
+ (json-int, optional)
+- "length": Length of that range in bytes. (json-int, optional)
+
+Example:
+
+{ "event": "QCOW2_OVERLAP_CHECK_MEMORY_LIMIT_REACHED",
+ "data": { "reference": "virtio0", "start": "805306368",
+ "length": "268435456" },