Skip to content
Snippets Groups Projects
Commit d3256f88 authored by David Woodhouse's avatar David Woodhouse
Browse files

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: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
Acked-by: default avatarKevin Wolf <kwolf@redhat.com>
Reviewed-by: default avatarPaul Durrant <paul@xen.org>
parent d388c9f5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment