hw/xen: automatically assign device index to block devices
There's no need to force the user to assign a vdev. We can automatically assign one, starting at xvda and searching until we find the first disk name that's unused. This means we can now allow '-drive if=xen,file=xxx' to work without an explicit separate -driver argument, just like if=virtio. Rip out the legacy handling from the xenpv machine, which was scribbling over any disks configured by the toolstack, and didn't work with anything but raw images. Signed-off-by:David Woodhouse <dwmw@amazon.co.uk> Acked-by:
Kevin Wolf <kwolf@redhat.com> Reviewed-by:
Paul Durrant <paul@xen.org>
Showing
- blockdev.c 12 additions, 3 deletionsblockdev.c
- hw/block/xen-block.c 113 additions, 5 deletionshw/block/xen-block.c
- hw/xen/xen_devconfig.c 0 additions, 28 deletionshw/xen/xen_devconfig.c
- hw/xenpv/xen_machine_pv.c 0 additions, 9 deletionshw/xenpv/xen_machine_pv.c
- include/hw/xen/xen-legacy-backend.h 0 additions, 1 deletioninclude/hw/xen/xen-legacy-backend.h
Loading
Please register or sign in to comment