[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH] xen_disk: treat "vhd" as "vpc"
From: |
Stefano Stabellini |
Subject: |
[Qemu-block] [PATCH] xen_disk: treat "vhd" as "vpc" |
Date: |
Fri, 4 Dec 2015 14:41:02 +0000 |
User-agent: |
Alpine 2.02 (DEB 1266 2009-07-14) |
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 <address@hidden>
diff --git a/hw/block/xen_disk.c b/hw/block/xen_disk.c
index 267d8a8..37e14d1 100644
--- a/hw/block/xen_disk.c
+++ b/hw/block/xen_disk.c
@@ -811,6 +811,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");
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-block] [PATCH] xen_disk: treat "vhd" as "vpc",
Stefano Stabellini <=