This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] How HVM domain distingush ioemu disk and VBD disk

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] How HVM domain distingush ioemu disk and VBD disk
From: "Yu, Ke" <ke.yu@xxxxxxxxx>
Date: Tue, 12 Sep 2006 12:50:18 +0800
Delivery-date: Mon, 11 Sep 2006 21:50:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbWJvI/klkHpmx0RguJAxPuctu3YQ==
Thread-topic: How HVM domain distingush ioemu disk and VBD disk

From cset 10921, ioemu: prefix is removed from disk config in 
/etc/xen/xmexample.hvm. Now HVM VBD driver is available, this thus raises a 
question: how would HVM domain know if one disk is a qemu-dm disk or a VBD disk?

From current implementation, qemu-dm will recognize disk had, hdb, hdc, hdd, 
and VBD drive can recognize all disk (had~hdd, hde, hdf ...) . So the result 
is: qemu-dm will mount /dev/hda-hdd, and VBD driver will mount the rest 
(/dev/hde,...). Actually, VBD will also try to mount /dev/hda..., but failed 
with error message "register_blkdev: cannot get major 3 for ide", since the 
/hda is already mounted as qemu-dm disk.

This looks a litt bit confusing. So I just wonder: is this the expected 
behavor? Do we intend having some explicit mechanism to indentify ioemu disk 
and VBD disk? 

Best Regards
Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>