All of lore.kernel.org
 help / color / mirror / Atom feed
* accessing a char device in xenU
@ 2005-01-26 21:33 Matthieu PATOU
  0 siblings, 0 replies; 6+ messages in thread
From: Matthieu PATOU @ 2005-01-26 21:33 UTC (permalink / raw)
  To: Xen Devel

Hi
is it possible to access a char device in xenU ?
More precisly i have i tape device in a server and i want to share it across
my different xenU domains.

Any clues ?
Matthieu


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: accessing a char device in xenU
  2005-02-11 10:37     ` Matthieu
@ 2005-02-11 16:01       ` Mark Williamson
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Williamson @ 2005-02-11 16:01 UTC (permalink / raw)
  To: xen-devel; +Cc: Matthieu, Mark Williamson

> > 'phy:/dev/sdb,sdb,w'
>
> i was talking about a char device (a dat tape).
> So the only solution is to hide the whole card and export it into another
> xenU ...

Ah, sorry.

No, we don't provide virtualisation at the SCSI command layer so you'll have 
to either export the whole PCI card or use a network-based solution.  My 
preference would be for the network-based solution unless you have a really 
strong reason to use PCI exporting.

CHeers,
Mark


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: accessing a char device in xenU
  2005-02-10 22:38   ` Mark Williamson
@ 2005-02-11 10:37     ` Matthieu
  2005-02-11 16:01       ` Mark Williamson
  0 siblings, 1 reply; 6+ messages in thread
From: Matthieu @ 2005-02-11 10:37 UTC (permalink / raw)
  To: Mark Williamson; +Cc: matxen, xen-devel


On February 10, 11:38 pm Mark Williamson <maw48@cl.cam.ac.uk> wrote:
> >  Is it possible to make a scsi device invisible from xen0 and visilbe
> >  in xenU (i'm not talking of a whole scsi card but just one device on
> >  the card) ?
>
> You can't make it invisible in dom0 but you can export it to a domU
> using the standard virtual block device configuration. i.e.:
>
> 'phy:/dev/sdb,sdb,w'
i was talking about a char device (a dat tape).
So the only solution is to hide the whole card and export it into another
xenU ...

matthieu


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: accessing a char device in xenU
  2005-02-10 22:18 ` Matthieu PATOU
@ 2005-02-10 22:38   ` Mark Williamson
  2005-02-11 10:37     ` Matthieu
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Williamson @ 2005-02-10 22:38 UTC (permalink / raw)
  To: xen-devel; +Cc: Matthieu PATOU

> Is it possible to make a scsi device invisible from xen0 and visilbe in
> xenU (i'm not talking of a whole scsi card but just one device on the card)
> ?

You can't make it invisible in dom0 but you can export it to a domU using the 
standard virtual block device configuration. i.e.:

'phy:/dev/sdb,sdb,w'

Cheers,
Mark

> > With a dvice like a tape you'd presumably only want to let one domain
> > access it at a time, perhaps with a hard interlock as to which tape is
> > in the drive. Fortunately, the bandwidth is pretty low, so it's probably
> > easiest to setup a network based soloution rather than doing something
> > Xen specific. I presume such daemons already exist (?)
>
> Sure something like amanda should work ...
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: accessing a char device in xenU
  2005-01-28  8:06 Ian Pratt
@ 2005-02-10 22:18 ` Matthieu PATOU
  2005-02-10 22:38   ` Mark Williamson
  0 siblings, 1 reply; 6+ messages in thread
From: Matthieu PATOU @ 2005-02-10 22:18 UTC (permalink / raw)
  To: xen-devel

Sorry for my late comment on this email ...
> > Hi
> > is it possible to access a char device in xenU ?
> > More precisly i have i tape device in a server and i want to 
> > share it across
> > my different xenU domains.
> 
> No, there's no generic mechanism for sharing char devices. The way in
> which it makes sense to multiplex devices between domains is typically
> very device-secific:
> 
Is it possible to make a scsi device invisible from xen0 and visilbe in xenU
(i'm not talking of a whole scsi card but just one device on the card) ?

> With a dvice like a tape you'd presumably only want to let one domain
> access it at a time, perhaps with a hard interlock as to which tape is
> in the drive. Fortunately, the bandwidth is pretty low, so it's probably
> easiest to setup a network based soloution rather than doing something
> Xen specific. I presume such daemons already exist (?)
Sure something like amanda should work ...


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: accessing a char device in xenU
@ 2005-01-28  8:06 Ian Pratt
  2005-02-10 22:18 ` Matthieu PATOU
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Pratt @ 2005-01-28  8:06 UTC (permalink / raw)
  To: Matthieu PATOU, Xen Devel

> Hi
> is it possible to access a char device in xenU ?
> More precisly i have i tape device in a server and i want to 
> share it across
> my different xenU domains.

No, there's no generic mechanism for sharing char devices. The way in
which it makes sense to multiplex devices between domains is typically
very device-secific:

With a dvice like a tape you'd presumably only want to let one domain
access it at a time, perhaps with a hard interlock as to which tape is
in the drive. Fortunately, the bandwidth is pretty low, so it's probably
easiest to setup a network based soloution rather than doing something
Xen specific. I presume such daemons already exist (?)

Ian



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-02-11 16:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-26 21:33 accessing a char device in xenU Matthieu PATOU
2005-01-28  8:06 Ian Pratt
2005-02-10 22:18 ` Matthieu PATOU
2005-02-10 22:38   ` Mark Williamson
2005-02-11 10:37     ` Matthieu
2005-02-11 16:01       ` Mark Williamson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.