[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v2 0/9] block: -device drive=<node-name> fixes
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-block] [PATCH v2 0/9] block: -device drive=<node-name> fixes |
Date: |
Mon, 17 Jul 2017 13:31:42 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Am 13.07.2017 um 13:41 hat Kevin Wolf geschrieben:
> Since 2.9 it is possible for a user to care only about nodes and qdev devices,
> but not about BlockBackends, by defining with -blockdev and using their node
> name in -device. Devices create an anonymous BlockBackend internally then.
>
> One of the major problems in this setup is that such devices are not listed in
> query-block or HMP 'info block' because the BBs are not monitor-owned. A
> recent
> discussion concluded that we really want to replace query-block and friends
> with something that matches QEMU's internals better, but there's no way to do
> that in 2.10 (and I wouldn't bet on it to be completed for 2.11). So for now,
> just make the devices appear in query-block and add the qdev ID there in order
> to make the devices identifiable (they have 'device': '' because the BB is
> anonymous).
>
> With the additional qdev field, it turned out that with empty drives, ide-cd
> and scsi-cd weren't even properly attached to the BlockBackend. If you do it
> right, this even results in crashes. (Floppy already gets it right, in case
> you
> wondered.)
>
> After this series, -device drive=<node-name> should be reasonably usable
> without a major loss of functionality like before.
Applied to the block branch.
Kevin
- [Qemu-block] [PATCH v2 1/9] block: Make blk_get_attached_dev_id() public, (continued)
- [Qemu-block] [PATCH v2 1/9] block: Make blk_get_attached_dev_id() public, Kevin Wolf, 2017/07/13
- [Qemu-block] [PATCH v2 2/9] block/qapi: Add qdev device name to query-block, Kevin Wolf, 2017/07/13
- [Qemu-block] [PATCH v2 3/9] block: Make blk_all_next() public, Kevin Wolf, 2017/07/13
- [Qemu-block] [PATCH v2 5/9] block: List anonymous device BBs in query-block, Kevin Wolf, 2017/07/13
- [Qemu-block] [PATCH v2 4/9] block/qapi: Use blk_all_next() for query-block, Kevin Wolf, 2017/07/13
- [Qemu-block] [PATCH v2 6/9] ide: bdrv_attach_dev() for empty CD-ROM, Kevin Wolf, 2017/07/13
- [Qemu-block] [PATCH v2 7/9] scsi-disk: bdrv_attach_dev() for empty CD-ROM, Kevin Wolf, 2017/07/13
- [Qemu-block] [PATCH v2 9/9] qemu-iotests: Test unplug of -device without drive, Kevin Wolf, 2017/07/13
- [Qemu-block] [PATCH v2 8/9] qemu-iotests: Test 'info block', Kevin Wolf, 2017/07/13
- Re: [Qemu-block] [Qemu-devel] [PATCH v2 0/9] block: -device drive=<node-name> fixes, John Snow, 2017/07/13
- Re: [Qemu-block] [PATCH v2 0/9] block: -device drive=<node-name> fixes,
Kevin Wolf <=