From: "Ky Srinivasan" Subject: Re: PV drivers for HVM guests Date: Wed, 04 Oct 2006 14:50:37 -0400 Message-ID: <4523CA0F.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: Steven Smith Cc: xen-devel@lists.xensource.com, sos22@srcf.ucam.org List-Id: xen-devel@lists.xenproject.org >>> Steven Smith 10/04/06 6:24 AM >>>=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 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 code untouched. >How much code is actually required in this abstraction layer? Not a whole lot. The shim layer I currently have is about 80 lines (about = 40 lines in a header file and about 40 lines in a c file). Along with this = I have a few ifdefs in the PV driver code to deal with non-existent header = files and non-existent fields in data structures such as struct bus_type, = struct device etc.=20 Regards, K. Y