From: Muli Ben-Yehuda Subject: Re: PV drivers for HVM guests Date: Wed, 4 Oct 2006 10:15:51 +0200 Message-ID: <20061004081551.GC6274@rhun.haifa.ibm.com> References: <45229025.E57C.0030.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Ky Srinivasan , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, Oct 04, 2006 at 08:56:45AM +0100, Keir Fraser wrote: > > I have implemented both these schemes for the sles9 kernel and > > would like to get your input on your preference. I personally like > > option 2. Going forward, the evolution of PV drivers needs to be > > constrained by the required support for legacy Linux environments. > > A shim layer (i.e., a set of compat macros) that avoids ifdef'ing > the core driver code is definitely the way to go. FWIW, neither option has a chance of being accepted upstream. For upstream acceptance (assuming that it is a goal - it should be, otherwise you forever chase the latest kernel API change, multiplied by the number of different distro kernel trees you support) just write the latest version of the driver to the latest kernel version. But I suspect you already know this :-) Cheers, Muli