PV drivers for HVM guests
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
On Wed, Oct 4, 2006 at 3:56 AM, in message
<C14927CD.2084%[email protected]>, Keir Fraser
Quoted 13 lines · <[email protected]> wrote:
Quoted 2 lines · Ky Srinivasan
These differences can be dealt with in a couple of different ways:
1) Modify the code in the PV drivers under appropriate compilation switchesto
Quoted 3 lines
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 drivercode
Quoted 4 lines
untouched.
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
Quoted 8 lines
forward,
Quoted 2 lines
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.
-- 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