From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sh1ff-0002P1-I7 for qemu-devel@nongnu.org; Tue, 19 Jun 2012 12:52:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sh1fa-0001XV-Go for qemu-devel@nongnu.org; Tue, 19 Jun 2012 12:52:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sh1fa-0001XQ-8a for qemu-devel@nongnu.org; Tue, 19 Jun 2012 12:52:46 -0400 Message-ID: <4FE0AE2E.5000606@redhat.com> Date: Tue, 19 Jun 2012 10:51:58 -0600 From: Eric Blake MIME-Version: 1.0 References: <1340120601-24747-1-git-send-email-owasserm@redhat.com> <1340120601-24747-5-git-send-email-owasserm@redhat.com> In-Reply-To: <1340120601-24747-5-git-send-email-owasserm@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigA6E6A507E4103DE5F7D73B92" Subject: Re: [Qemu-devel] [PATCH v12 04/13] Add cache handling functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Orit Wasserman Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, quintela@redhat.com, stefanha@gmail.com, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com, blauwirbel@gmail.com, Petter Svard , Benoit Hudzia , avi@redhat.com, Aidan Shribman , pbonzini@redhat.com, chegu_vinod@hp.com This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA6E6A507E4103DE5F7D73B92 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/19/2012 09:43 AM, Orit Wasserman wrote: > Add LRU page cache mechanism. > The page are accessed by their address. >=20 > Signed-off-by: Benoit Hudzia > Signed-off-by: Petter Svard > Signed-off-by: Aidan Shribman > Signed-off-by: Orit Wasserman > --- > +++ 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 > + * > + * This work is licensed under the terms of the GNU GPL, version 2. S= ee > + * 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 > + * > + * This work is licensed under the terms of the GNU GPL, version 2. S= ee > + * the COPYING file in the top-level directory. Same header comments as for cache.c. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigA6E6A507E4103DE5F7D73B92 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJP4K4vAAoJEKeha0olJ0NqpiwH/A1Ka4t6+a1uMsVotJ3c7IuK 3gHWUc2OJDAUs9AoU10eANCEtgrzCHr7ImJTh4evd5q+T63JY9lab+a9XdTgyp8w F540MfcuveQXTkO3M1ukHPZ9fWyROcYijpR0f1VFAhEpLFahyOvCSnIEc2+AQjf/ 2lbWlKXrYePuTbzNEjuCpPuMMfn0/dgPUlkfS58+Akcrm2Khj8SxTNKpAOSzx1MQ gvh9c/3Nnilr/CcrAoBIlEeF5sxKczw6k0G4j3iBq/ybVaR0HyQrHrBvLbTjv4lU H2oRn5wLPlVnvDCl1lIy4rIZTDalCW9/JQpJ7q//cmSQzpo8zNKvHkyhO+W7nY8= =KTgV -----END PGP SIGNATURE----- --------------enigA6E6A507E4103DE5F7D73B92--