summaryrefslogtreecommitdiff
path: root/Using Libvirt to manage QEMU image bitmaps.md
blob: 9a894933b57ff7ed6a6b0360c8fa5f159b871102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
tags:
  - qemu
  - libvirt
---
[[GroupVPS Platform]]

---

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.


#### Removing a dirty bitmap
Cannot be removed if it is busy.
Arguments: node, nameg

---
https://qemu-project.gitlab.io/qemu/interop/bitmaps.html