From fc3e493bc8e96ef4bf7ae4f035f43cb39382c936 Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Fri, 4 Dec 2015 14:41:02 +0000 Subject: [PATCH] xen_disk: treat "vhd" as "vpc" The Xen toolstack uses "vhd" to specify a disk in VHD format, however the name of the driver in QEMU is "vpc". Replace "vhd" with "vpc", so that QEMU can find the right driver to use for it. Signed-off-by: Stefano Stabellini --- hw/block/xen_disk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/block/xen_disk.c b/hw/block/xen_disk.c index 814665034d..a48e726f4a 100644 --- a/hw/block/xen_disk.c +++ b/hw/block/xen_disk.c @@ -825,6 +825,9 @@ static int blk_init(struct XenDevice *xendev) if (!strcmp("aio", blkdev->fileproto)) { blkdev->fileproto = "raw"; } + if (!strcmp("vhd", blkdev->fileproto)) { + blkdev->fileproto = "vpc"; + } if (blkdev->mode == NULL) { blkdev->mode = xenstore_read_be_str(&blkdev->xendev, "mode"); } -- 2.11.4.GIT