All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/5] Make xbzrle_cache_size a migration parameter
@ 2017-10-25  5:48 Juan Quintela
  2017-10-25  5:48 ` [Qemu-devel] [PATCH v3 1/5] migration: Make sure that we pass the right cache size Juan Quintela
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Juan Quintela @ 2017-10-25  5:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx


Hi

On v3:
- rebase on top of last migration pull requset
- improve comments (dave suggestion)
- always return 0 in case of error
- checked with ovirt/openstack/libvirt people that making value a
  power of two is not a problem.
- should I drop the last patch, or sent it?


Please revieww.

[v2]

- rebase
- fix comments about power of 2 instead of multiple of two
- minor typo on error message
- use Error * when setting values

After asking people of libvirt/ovirt/openstack, it appears that there
is no problem about restricting cache_size to real values.  We give
back one error and they had to handle errors already.

Please review, Juan.

[v1]

I started looking at xbzrle_cache_size and saw that it was not a parameter.
How difficult could it be?  HaHa

- x-multifd-page-count and x-multifd-channels were not o
  migrate_test_apply

- page_cache.c has parameters that were not used (max_item_age)

- page cache types were random.  Move almost all to int/size_t as
  appropiate

- error handling was split in three functions:
  xbzrle_cache_resize
  cache_init
  qmp_set_cache_size
  Make some sense of it and use Error*

- We pass one value to qmp_migrate_cache_size it asigned pow2log() of
  that value, and cache_init() used a power of two.  Make sure that
  the value passed is right.

- Now I am able to make xbzrle_cache_size a parameter!!!!

- Now that I have arrived here, I tried to make the json types for
  migartion parameters the real ones instead of everything is an int64.
  I will be happy if libvirt people checked this.

Please review, Juan.


*** BLURB HERE ***

Juan Quintela (5):
  migration: Make sure that we pass the right cache size
  migration: Don't play games with the requested cache size
  migration: No need to return the size of the cache
  migration: Make xbzrle_cache_size a migration parameter
  migration: [RFC] Use proper types in json

 hmp.c                  | 34 ++++++++++++------
 migration/migration.c  | 94 ++++++++++++++++++++++++++++----------------------
 migration/migration.h  |  1 -
 migration/page_cache.c | 12 ++++---
 migration/ram.c        | 20 ++++-------
 migration/ram.h        |  2 +-
 qapi/migration.json    | 44 ++++++++++++++++-------
 7 files changed, 122 insertions(+), 85 deletions(-)

-- 
2.13.6

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-10-26 12:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-25  5:48 [Qemu-devel] [PATCH v3 0/5] Make xbzrle_cache_size a migration parameter Juan Quintela
2017-10-25  5:48 ` [Qemu-devel] [PATCH v3 1/5] migration: Make sure that we pass the right cache size Juan Quintela
2017-10-25  5:48 ` [Qemu-devel] [PATCH v3 2/5] migration: Don't play games with the requested " Juan Quintela
2017-10-25  5:48 ` [Qemu-devel] [PATCH v3 3/5] migration: No need to return the size of the cache Juan Quintela
2017-10-25 17:28   ` Dr. David Alan Gilbert
2017-10-26  7:07     ` Juan Quintela
2017-10-26 12:37       ` Dr. David Alan Gilbert
2017-10-25  5:48 ` [Qemu-devel] [PATCH v3 4/5] migration: Make xbzrle_cache_size a migration parameter Juan Quintela
2017-10-25  5:48 ` [Qemu-devel] [PATCH v3 5/5] migration: [RFC] Use proper types in json Juan Quintela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.