[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/10] migration: Make cache_init() take an erro
From: |
Peter Xu |
Subject: |
Re: [Qemu-devel] [PATCH 05/10] migration: Make cache_init() take an error parameter |
Date: |
Thu, 12 Oct 2017 13:55:26 +0800 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Tue, Oct 10, 2017 at 08:15:37PM +0200, Juan Quintela wrote:
[...]
> diff --git a/migration/page_cache.h b/migration/page_cache.h
> index 931868b857..4596496416 100644
> --- a/migration/page_cache.h
> +++ b/migration/page_cache.h
> @@ -24,12 +24,11 @@ typedef struct PageCache PageCache;
> *
> * Returns new allocated cache or NULL on error
> *
> - * @cache pointer to the PageCache struct
> - * @num_pages: cache maximal number of cached pages
> + * @cache_size: cache size in byets
^^^^^
(typo)
> * @page_size: cache page size
> + * @errp: set *errp if the check failed, with reason
> */
> -PageCache *cache_init(size_t num_pages, size_t page_size);
> -
> +PageCache *cache_init(int64_t cache_size, size_t page_size, Error **errp);
Besides:
Reviewed-by: Peter Xu <address@hidden>
--
Peter Xu
- [Qemu-devel] [PATCH 01/10] migration: Fix migrate_test_apply for multifd parameters, (continued)
- [Qemu-devel] [PATCH 01/10] migration: Fix migrate_test_apply for multifd parameters, Juan Quintela, 2017/10/10
- [Qemu-devel] [PATCH 02/10] migratiom: Remove max_item_age parameter, Juan Quintela, 2017/10/10
- [Qemu-devel] [PATCH 03/10] migration: Make cache size elements use the right types, Juan Quintela, 2017/10/10
- [Qemu-devel] [PATCH 04/10] migration: Move xbzrle cache resize error handling to xbzrle_cache_resize, Juan Quintela, 2017/10/10
- [Qemu-devel] [PATCH 05/10] migration: Make cache_init() take an error parameter, Juan Quintela, 2017/10/10
- Re: [Qemu-devel] [PATCH 05/10] migration: Make cache_init() take an error parameter,
Peter Xu <=
- [Qemu-devel] [PATCH 07/10] migration: Don't play games with the requested cache size, Juan Quintela, 2017/10/10
- [Qemu-devel] [PATCH 06/10] migration: Make sure that we pass the right cache size, Juan Quintela, 2017/10/10
- [Qemu-devel] [PATCH 08/10] migration: No need to return the size of the cache, Juan Quintela, 2017/10/10
- [Qemu-devel] [PATCH 09/10] migration: Make xbzrle_cache_size a migration parameter, Juan Quintela, 2017/10/10
- [Qemu-devel] [PATCH 10/10] migration: [RFC] Use proper types in json, Juan Quintela, 2017/10/10