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

Re: [Xen-devel] HOWTO: Patch to arbitrary Linux Kernel to support PV dri

To: Alex Bligh <alex@xxxxxxxxxxx>
Subject: Re: [Xen-devel] HOWTO: Patch to arbitrary Linux Kernel to support PV drivers for domU HVM
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Mon, 10 May 2010 09:20:27 +0300
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 09 May 2010 23:21:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7410B345494E42D50A53E6CE@xxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <7410B345494E42D50A53E6CE@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Sun, May 09, 2010 at 09:14:32PM +0100, Alex Bligh wrote:
> I have made up a patch for an arbitrary Linux kernel (I'm using
> Ubuntu's Lucid kernel 2.6.32-22) which adds support for PV drivers with
> under domU HVM.
>
> Previously, to build pvdrivers for a kernel, you had to xenify it,
> build the xenified kernel with CONFIG_XEN switched of, then add the  
> unmodified_drivers, then build them. That prevents you building pvdrivers
> for any kernel you do not have xenifying patches for.
>
> With this patch, you can build pvdrivers against an arbitrary kernel
> (such as a distributor's kernel). This is useful to me, as I want to
> stick with distributor kernels. In essence what I have done is
> untangled some (but not all) of the build/header spaghetti from
> unmodified_drivers. The source files are about 2 x perl -pi -e
> away from what's in unmodified_drivers plus a xenified kernel, just
> in different directories. I've also made them build as built-ins.
>
> It's described in more detail here:
> http://blog.alex.org.uk/archives/23
> Patch is here:
> http://www.alex.org.uk/pvdrivers.20100509-1955.patch
>
> The drivers seem to work ok.
>

Great, thanks! 

I'll update this info to the wiki later today.

-- Pasi


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>