diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-03-20 11:07:49 +0100 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-03-20 11:07:49 +0100 |
commit | 80ccf68f55dbb70d7e5ed52ee95b3c9d1b6ce264 (patch) | |
tree | 93e28e85ab70052aa6f577998ec7dc1f413b40c0 /3 Resources/libvirt | |
parent | 9642cd7ae24f0ba79ce5647c709b35ae8f06a285 (diff) |
vault backup: 2025-03-20 11:07:48
Diffstat (limited to '3 Resources/libvirt')
-rw-r--r-- | 3 Resources/libvirt/Using Virsh to manage bitmaps.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/3 Resources/libvirt/Using Virsh to manage bitmaps.md b/3 Resources/libvirt/Using Virsh to manage bitmaps.md new file mode 100644 index 0000000..5cb41f3 --- /dev/null +++ b/3 Resources/libvirt/Using Virsh to manage bitmaps.md @@ -0,0 +1,23 @@ +--- +tags: + - libvirt + - qemu +references: + - https://qemu-project.gitlab.io/qemu/interop/bitmaps.html +--- +To query info about block devices, including bitmaps we can use a QMP command: +``` +sudo virsh qemu-monitor-command --pretty instance-00026133 '{"execute": "query-block", "arguments": {}}' +``` + +There are six primary bitmap-management API commands: +- `block-dirty-bitmap-add` +- `block-dirty-bitmap-remove` +- `block-dirty-bitmap-clear` +- `block-dirty-bitmap-disable` +- `block-dirty-bitmap-enable` +- `block-dirty-bitmap-merge` +And one related query command: +- `query-block` + +The `node` argument to bitmap cmds can be found as `node-name` in `query-block` results.
\ No newline at end of file |