On 20.05.21 16:21, Vladimir Sementsov-Ogievskiy wrote:
We need an ability to insert filters above top block node, attached to
block device. It can't be achieved with blockdev-reopen command. So, we
want do it with help of qom-set.

Intended usage:

Assume there is a node A that is attached to some guest device.

1. blockdev-add to create a filter node B that has A as its child.

2. qom-set to change the node attached to the guest device’s
    BlockBackend from A to B.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>
---
  hw/core/qdev-properties-system.c | 43 +++++++++++++++++++++++---------
  1 file changed, 31 insertions(+), 12 deletions(-)

Tentative

Reviewed-by: Max Reitz <mre...@redhat.com>


Reply via email to