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-users

Re: [Xen-users] How to add additional drivers to xen-kernel ?

To: anant <ANigam@xxxxxxxxxxx>
Subject: Re: [Xen-users] How to add additional drivers to xen-kernel ?
From: Hugo Mills <hugo-xen@xxxxxxxxxxxxx>
Date: Wed, 31 Jan 2007 16:54:17 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 31 Jan 2007 10:47:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8732110.post@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <8732110.post@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
On Wed, Jan 31, 2007 at 08:21:21AM -0800, anant wrote:
> I am bit curious to know how can we add additional drivers to xen-kernel...
> Is it like first we have to write drivers for linux and then add xen patches
> to it.
> If this is the way then how to add xen patches to it ? 
> Any good link discribing this issue would be of great help. I cant find
> anything useful after googling it...

   Googling for "Linux Device Drivers" yields an on-line copy[1] of the
Linux Device Drivers book, generally considered the definitive work in
the area.

   A linux kernel running under Xen is just a linux kernel. A dom0
kernel has access to all of the hardware of the machine (unless it's
configured not to with the PCI pass-through). The modifications
required for the kernel to run with Xen are almost entirely orthogonal
to the device driver model.

   You can generate patches for the 2.6.16 kernels to make them Xen
enabled by using the "make mkpatches" target from the Xen sources.

   It is possible that your situation will indeed require you to write
a device driver, but I would be surprised if that was actually the
case.

   After reading most of the mails that you've generated on this list,
I'm still unclear exactly what you want to achieve. I've understood
that you want to monitor hardware, and that you have some specific
piece of tooling that you want to use to achieve this. However, you
haven't said why you want to do this, and what you're going to do with
the information. A clear, precise and detailed description of
*exactly* what information you want to collect, from where, to where,
and for what purposes would help the people on this list to help you
much more clearly than they have been able to so far.

   A description such as the following would be the sort of thing
that would be helpful:

"We have a collection of 10 machines, each running 4 VMs with various
flavours of Linux and Windows on them. We need to collect information
on the physical hardware temperature and fan sensors, to be passed to
a remote monitoring service. We also need information on the amount of
free memory and CPU usage in each VM, also to be passed to the same
remote monitoring service. The remote monitoring service is an
openWBEM service, which doesn't talk to any other kind of service, and
cannot be changed."

   I haven't actually seen any clear description at this kind of level
from you of the system you're trying to build, and you're making
assumptions about the way that [you think] it has to work, and asking
questions based on those assumptions, so we're left guessing what it
is you actually need to do.

   Hugo.

[1] http://lwn.net/Kernel/LDD3/

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 1C335860 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
    --- SCSI is usually fixed by remembering that it needs three ---     
        terminations: One at each end of the chain. And the goat.        
                                                                         

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>