Re: Frontswap [PATCH 0/4] (was Transcendent Memory): overview

From: Avi Kivity
Date: Fri Apr 30 2010 - 14:25:43 EST


On 04/29/2010 05:42 PM, Dan Magenheimer wrote:

Yes, and that set of hooks is new API, right?
Well, no, if you define API as "application programming interface"
this is NOT exposed to userland. If you define API as a new
in-kernel function call, yes, these hooks are a new API, but that
is true of virtually any new code in the kernel. If you define
API as some new interface between the kernel and a hypervisor,
yes, this is a new API, but it is "optional" at several levels
so that any hypervisor (e.g. KVM) can completely ignore it.

The concern is not with the hypervisor, but with Linux. More external APIs reduce our flexibility to change things.

So please let's not argue about whether the code is a "new API"
or not, but instead consider whether the concept is useful or not
and if useful, if there is or is not a cleaner way to implement it.

I'm convinced it's useful. The API is so close to a block device (read/write with key/value vs read/write with sector/value) that we should make the effort not to introduce a new API.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/