WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Further problems with HyperSCSI and vbds...

To: sven.kretzschmar@xxxxxx
Subject: [Xen-devel] Re: Further problems with HyperSCSI and vbds...
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 14 Oct 2003 08:17:00 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx, Keir.Fraser@xxxxxxxxxxxx
Delivery-date: Tue, 14 Oct 2003 08:18:22 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Tue, 14 Oct 2003 00:41:49 +0200." <25653.1066084909@xxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> I think the problem here is, that HyperSCSI attaches /dev/sda 
> without really knowing anything about Xen ;-)
> Xen also knows nothing about this "faked" physical SCSI 
> device on /dev/sda, only xenolinux does, because of the loaded 
> HyperSCSI kernel module driver.

Yes, you've hit the nail on the head. Although you construct VBDs out
of carved up hd* and sd* partitions, those partitions have to be on
devices that Xen knows about. So, when you try and access the VBD Xen
maps the request to a non-existent local SCSI disc :-)
 
> So, perhaps the virtual block driver in xenolinux tries to access the 
> faked physical /dev/sda device via Xen, but as Xen does not know it, 
> this somehow does not really work. (Btw: Shouldn't this result in some 
> printk() error messages in the xenolinux virtual block driver ?)

I'll add the debugging back into the xenolinux driver. In any case, a
bit more noise from our development tree would be no bad thing!

> The virtual block driver in xenolinux should instead recognize that 
> this is not a physical device registered with Xen and should try to
> forward these disk requests and ioctls directly to the /dev/sda(X) device,
> instead of sending it to Xen.
> Of course, this should only by allowed for devices (or device drivers)
> loaded in domain0 ??

Why do you want to construct VBDs if only domain 0 is going to access
them? However, if that's all you want to do then yes --- modificatiosn
to xl_scsi.c will suffice.

> I know that this might violate the design principle of Xen to be the
> only component which has direct access to the hardware.
> However, the /dev/sd* devices from HyperSCSI are not really local
> hardware, it's only a "faked" physical disk.

DOM0 is allowed unrestricted access to hardware already. Otherwise X
wouldn't work :-)
 
> I would be interested in some thoughts about that from the Xen project
> team and list readers, because I consider HyperSCSI to be an important
> feature for xenolinux domains.
> It would allow you to store the whole filesystems of a lot of domains from
> several physical machines, which are running xen/xenolinux, on one big
> fileserver.
> As HyperSCSI is a very quick and efficient protocol / implementation, this
> would be a lot quicker and remarkably more efficient than using NFS for
> the same task.

There are a few options to allow HyperSCSI access from all domains:

 1. NFS-mount HyperSCSI partitions via domain 0 (this will work
already)

 2. NFS-mount VBDs which map onto chunks of HyperSCSI disk, via domain
0 (this might work if you hack DOM0's xl_scsi.c a bit so that DOM0
VBDs can map onto HyperSCSI block devices).

 3. Add proper support for HyperSCSI to Xen. You'd need some scheme
for validating transmits which use the HyperSCSI transport, and
demusing received frames to the appropriate domain. I don't know
anything about teh protocol, so I don't know how easy this would be
(e.g. how much state Xen would need to keep lying around).

 -- Keir


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel