Re: [Qemu-devel] [PATCH V5] migration: add capability to bypass the shared memory

2018-06-27 Thread Liang Li
On Mon, Apr 16, 2018 at 11:00:11PM +0800, Lai Jiangshan wrote: > > migration/migration.c | 22 ++ > migration/migration.h | 1 + > migration/ram.c | 27 ++- > qapi/migration.json | 6 +- > 4 files changed, 46 insertions(+), 10

Re: [Qemu-devel] [PATCH V5] migration: add capability to bypass the shared memory

2018-04-27 Thread Cédric Le Goater
On 04/26/2018 09:05 PM, Dr. David Alan Gilbert wrote: >>> Can you please rework this to combine with Cédric Le Goater's >>> 'discard non-migratable RAMBlocks' - it's quite similar to what you're >>> trying to do but for a different reason; If you look at the v2 from >>> April 13, I think you can

Re: [Qemu-devel] [PATCH V5] migration: add capability to bypass the shared memory

2018-04-26 Thread Dr. David Alan Gilbert
* Lai Jiangshan (jiangshan...@gmail.com) wrote: > On Fri, Apr 20, 2018 at 12:38 AM, Dr. David Alan Gilbert > wrote: > > >> -static void ram_list_init_bitmaps(void) > >> +static void ram_list_init_bitmaps(RAMState *rs) > >> { > >> RAMBlock *block; > >> unsigned

Re: [Qemu-devel] [PATCH V5] migration: add capability to bypass the shared memory

2018-04-25 Thread Lai Jiangshan
On Fri, Apr 20, 2018 at 12:38 AM, Dr. David Alan Gilbert wrote: >> -static void ram_list_init_bitmaps(void) >> +static void ram_list_init_bitmaps(RAMState *rs) >> { >> RAMBlock *block; >> unsigned long pages; >> @@ -2151,9 +2152,17 @@ static void

Re: [Qemu-devel] [PATCH V5] migration: add capability to bypass the shared memory

2018-04-19 Thread Dr. David Alan Gilbert
* Lai Jiangshan (jiangshan...@gmail.com) wrote: > 1) What's this > > When the migration capability 'bypass-shared-memory' > is set, the shared memory will be bypassed when migration. > > It is the key feature to enable several excellent features for > the qemu, such as qemu-local-migration,

[Qemu-devel] [PATCH V5] migration: add capability to bypass the shared memory

2018-04-16 Thread Lai Jiangshan
1) What's this When the migration capability 'bypass-shared-memory' is set, the shared memory will be bypassed when migration. It is the key feature to enable several excellent features for the qemu, such as qemu-local-migration, qemu-live-update, extremely-fast-save-restore, vm-template,