On 06/19/2012 09:43 AM, Orit Wasserman wrote: > Add LRU page cache mechanism. > The page are accessed by their address. > > Signed-off-by: Benoit Hudzia <benoit.hud...@sap.com> > Signed-off-by: Petter Svard <pett...@cs.umu.se> > Signed-off-by: Aidan Shribman <aidan.shrib...@sap.com> > Signed-off-by: Orit Wasserman <owass...@redhat.com> > ---
> +++ b/cache.c > @@ -0,0 +1,219 @@ > +/* > + * Page cache for qemu > + * The cache is base on a hash on the page address > + * > + * Copyright 2011 Red Hat, Inc. and/or its affiliates It is 2012 now. > + * > + * Authors: > + * Orit Wasserman <owass...@redhat.com> > + * > + * This work is licensed under the terms of the GNU GPL, version 2. See > + * the COPYING file in the top-level directory. Since this is a brand new file, > + * > + * Contributions after 2012-01-13 are licensed under the terms of the > + * GNU GPL, version 2 or (at your option) any later version. _all_ changes in this file are after 2012-01-13; can we simplify the license header to drop the clause about LGPLv2-only? > + > + /* round down to the nearst power of 2 */ s/nearst/nearest/ > --- /dev/null > +++ b/include/qemu/cache.h > @@ -0,0 +1,81 @@ > +/* > + * Page cache for qemu > + * The cache is base on a hash on the page address > + * > + * Copyright 2011 Red Hat, Inc. and/or its affiliates > + * > + * Authors: > + * Orit Wasserman <owass...@redhat.com> > + * > + * This work is licensed under the terms of the GNU GPL, version 2. See > + * the COPYING file in the top-level directory. Same header comments as for cache.c. -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature