]> git.proxmox.com Git - mirror_qemu.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, 10 May 2021 12:43:58 +0000 (13:43 +0100)
commit1898293990702c5601e225dac9afd2402fc46e2d
tree75e93fd1403280161afd3e0f6d16be0cf4278961
parentf1e43b6026500690fc402828fa7cc735175b93b6
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>
hw/block/xen-block.c