]> xenbits.xensource.com Git - qemu-xen.git/commit
xen-block: Use specific blockdev driver
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 30 Apr 2021 16:34:32 +0000 (17:34 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 5 Jul 2021 09:45:21 +0000 (10:45 +0100)
commit136c34c9bc4179dc64b15b2bb5f0c54ca4ddf823
tree900bf5edb2483986d08cc4b5ebb1ec6b2d1ab398
parent077876e6d59d93c458731095928e25ec9860036c
xen-block: Use specific blockdev driver

... when a xen-block backend instance is created via xenstore.

Following 8d17adf34f50 ("block: remove support for using "file" driver
with block/char devices"), using the "file" blockdev driver for
everything doesn't work anymore, we need to use the "host_device"
driver when the disk image is a block device and "file" driver when it
is a regular file.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Paul Durrant <paul@xen.org>
Message-Id: <20210430163432.468894-1-anthony.perard@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
(cherry picked from commit 1898293990702c5601e225dac9afd2402fc46e2d)
hw/block/xen-block.c