Re: [PATCH v2 01/15] block: Add 'active' field to BlockDeviceInfo

2025-02-03 Thread Stefan Hajnoczi
On Thu, Jan 30, 2025 at 06:12:32PM +0100, Kevin Wolf wrote: > This allows querying from QMP (and also HMP) whether an image is > currently active or inactive (in the sense of BDRV_O_INACTIVE). > > Signed-off-by: Kevin Wolf > --- > qapi/block-core.json | 6 +- > block/monitor/block

Re: [PATCH v2 01/15] block: Add 'active' field to BlockDeviceInfo

2025-01-30 Thread Eric Blake
On Thu, Jan 30, 2025 at 06:12:32PM +0100, Kevin Wolf wrote: > This allows querying from QMP (and also HMP) whether an image is > currently active or inactive (in the sense of BDRV_O_INACTIVE). > > Signed-off-by: Kevin Wolf > --- > +++ b/block/qapi.c > @@ -63,6 +63,7 @@ BlockDeviceInfo *bdrv_bloc

[PATCH v2 01/15] block: Add 'active' field to BlockDeviceInfo

2025-01-30 Thread Kevin Wolf
This allows querying from QMP (and also HMP) whether an image is currently active or inactive (in the sense of BDRV_O_INACTIVE). Signed-off-by: Kevin Wolf --- qapi/block-core.json | 6 +- block/monitor/block-hmp-cmds.c | 5 +++-- block/qapi.c | 1 + tests/qemu-