On 06/11/2023 14:34, David Woodhouse wrote:
From: David Woodhouse <d...@amazon.co.uk>

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 <d...@amazon.co.uk>
Acked-by: Kevin Wolf <kw...@redhat.com>
---
  blockdev.c                          |  15 +++-
  hw/block/xen-block.c                | 118 ++++++++++++++++++++++++++--
  hw/xen/xen_devconfig.c              |  28 -------
  hw/xenpv/xen_machine_pv.c           |   9 ---
  include/hw/xen/xen-legacy-backend.h |   1 -
  5 files changed, 125 insertions(+), 46 deletions(-)


Reviewed-by: Paul Durrant <p...@xen.org>


Reply via email to