[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v12 04/13] Add cache handling functions
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v12 04/13] Add cache handling functions |
Date: |
Tue, 19 Jun 2012 10:51:58 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
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 <address@hidden>
> Signed-off-by: Petter Svard <address@hidden>
> Signed-off-by: Aidan Shribman <address@hidden>
> Signed-off-by: Orit Wasserman <address@hidden>
> ---
> +++ 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 <address@hidden>
> + *
> + * 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 <address@hidden>
> + *
> + * 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 address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v12 01/13] Add MigrationParams structure, (continued)
- [Qemu-devel] [PATCH v12 01/13] Add MigrationParams structure, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 03/13] Add XBZRLE documentation, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 02/13] Add migration capabilites, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 05/13] Add uleb encoding/decoding functions, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 04/13] Add cache handling functions, Orit Wasserman, 2012/06/19
- Re: [Qemu-devel] [PATCH v12 04/13] Add cache handling functions,
Eric Blake <=
- [Qemu-devel] [PATCH v12 06/13] Add save_block_hdr function, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 07/13] Add debugging infrastructure, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 11/13] Add XBZRLE to ram_save_block and ram_save_live, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 13/13] Add XBZRLE statistics, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 12/13] Add set_cachesize command, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 09/13] Add migration_end function, Orit Wasserman, 2012/06/19
- [Qemu-devel] [PATCH v12 08/13] Change ram_save_block to return -1 if there are no more changes, Orit Wasserman, 2012/06/19