From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBPiI-0000ZX-SQ for qemu-devel@nongnu.org; Tue, 22 Dec 2015 11:23:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBPiE-00085r-Rt for qemu-devel@nongnu.org; Tue, 22 Dec 2015 11:23:02 -0500 Received: from smtp.citrix.com ([66.165.176.89]:1113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBPiE-00085j-KZ for qemu-devel@nongnu.org; Tue, 22 Dec 2015 11:22:58 -0500 From: Stefano Stabellini Date: Tue, 22 Dec 2015 16:22:17 +0000 Message-ID: <1450801337-26849-4-git-send-email-stefano.stabellini@eu.citrix.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PULL 4/4] xen_disk: treat "vhd" as "vpc" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org, stefano.stabellini@eu.citrix.com 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 8146650..a48e726 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"); } -- 1.7.10.4