From: "Ky Srinivasan" Subject: Re: PV drivers for HVM guests Date: Wed, 04 Oct 2006 14:45:20 -0400 Message-ID: <4523C8D3.E57C.0030.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> On Wed, Oct 4, 2006 at 3:56 AM, in message , Keir Fraser wrote:=20 > On 3/10/06 9:31 pm, "Ky Srinivasan" wrote: >=20 >> These differences can be dealt with in a couple of different ways: >> 1) Modify the code in the PV drivers under appropriate compilation = switches=20 > to >> deal with the differences in the base kernels. >> 2) Introduce a compatibility component that bridges the gap between = the >> current PV code and a given Linux target and leave much of the PV = driver =20 > code >> untouched. >>=20 >> 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=20 > forward, >> the evolution of PV drivers needs to be constrained by the required = support >> for legacy Linux environments. >=20 > A shim layer (i.e., a set of compat macros) that avoids ifdef'ing the = core > driver code is definitely the way to go. >=20 > -- Keir Thanks Kier; this is also my preference. To keep the shim layer small, we = may still have some ifdefs in the driver code though(to deal with = non-existent header files that are included etc). Regards, K. Y=20