Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-24 Thread Igor Mammedov
Michael, You once advocated idea of using MAP_NORESERVE to reserve continuous HVA upto maxmmem in QEMU and then 'allocating' guest's RAM from that range so that translation map for vhost could consist only from that single pre-reserved HVA range and and if guest access page outside of actually pre

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-24 Thread Igor Mammedov
On Mon, 24 Jul 2017 09:06:33 +0100 "Dr. David Alan Gilbert" wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Thu, Jul 20, 2017 at 06:22:15PM +0100, Dr. David Alan Gilbert wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > > On Wed, Jul 19, 2017 at 03:24:27PM +0200,

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-24 Thread Igor Mammedov
On Sat, 22 Jul 2017 00:30:17 +0300 "Michael S. Tsirkin" wrote: > On Fri, Jul 21, 2017 at 04:41:58PM +0200, Igor Mammedov wrote: > > On Wed, 19 Jul 2017 18:52:56 +0300 > > "Michael S. Tsirkin" wrote: > > > > > On Wed, Jul 19, 2017 at 03:24:27PM +0200, Igor Mammedov wrote: > > > > On Wed, 19

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-24 Thread Dr. David Alan Gilbert
* Michael S. Tsirkin (m...@redhat.com) wrote: > On Thu, Jul 20, 2017 at 06:22:15PM +0100, Dr. David Alan Gilbert wrote: > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > On Wed, Jul 19, 2017 at 03:24:27PM +0200, Igor Mammedov wrote: > > > > On Wed, 19 Jul 2017 12:46:13 +0100 > > > > "Dr. Davi

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-21 Thread Michael S. Tsirkin
On Fri, Jul 21, 2017 at 04:41:58PM +0200, Igor Mammedov wrote: > On Wed, 19 Jul 2017 18:52:56 +0300 > "Michael S. Tsirkin" wrote: > > > On Wed, Jul 19, 2017 at 03:24:27PM +0200, Igor Mammedov wrote: > > > On Wed, 19 Jul 2017 12:46:13 +0100 > > > "Dr. David Alan Gilbert" wrote: > > > > > > > *

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-21 Thread Michael S. Tsirkin
On Thu, Jul 20, 2017 at 06:22:15PM +0100, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Wed, Jul 19, 2017 at 03:24:27PM +0200, Igor Mammedov wrote: > > > On Wed, 19 Jul 2017 12:46:13 +0100 > > > "Dr. David Alan Gilbert" wrote: > > > > > > > * Igor Mammedov (

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-21 Thread Igor Mammedov
On Wed, 19 Jul 2017 18:52:56 +0300 "Michael S. Tsirkin" wrote: > On Wed, Jul 19, 2017 at 03:24:27PM +0200, Igor Mammedov wrote: > > On Wed, 19 Jul 2017 12:46:13 +0100 > > "Dr. David Alan Gilbert" wrote: > > > > > * Igor Mammedov (imamm...@redhat.com) wrote: > > > > On Wed, 19 Jul 2017 23:17

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-20 Thread Dr. David Alan Gilbert
* Michael S. Tsirkin (m...@redhat.com) wrote: > On Wed, Jul 19, 2017 at 03:24:27PM +0200, Igor Mammedov wrote: > > On Wed, 19 Jul 2017 12:46:13 +0100 > > "Dr. David Alan Gilbert" wrote: > > > > > * Igor Mammedov (imamm...@redhat.com) wrote: > > > > On Wed, 19 Jul 2017 23:17:32 +0800 > > > > Peng

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-19 Thread Michael S. Tsirkin
On Wed, Jul 19, 2017 at 03:24:27PM +0200, Igor Mammedov wrote: > On Wed, 19 Jul 2017 12:46:13 +0100 > "Dr. David Alan Gilbert" wrote: > > > * Igor Mammedov (imamm...@redhat.com) wrote: > > > On Wed, 19 Jul 2017 23:17:32 +0800 > > > Peng Hao wrote: > > > > > > > When a guest that has several h

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-19 Thread Igor Mammedov
On Wed, 19 Jul 2017 12:46:13 +0100 "Dr. David Alan Gilbert" wrote: > * Igor Mammedov (imamm...@redhat.com) wrote: > > On Wed, 19 Jul 2017 23:17:32 +0800 > > Peng Hao wrote: > > > > > When a guest that has several hotplugged dimms is migrated, in > > > destination host it will fail to resume.

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-19 Thread Dr. David Alan Gilbert
* Igor Mammedov (imamm...@redhat.com) wrote: > On Wed, 19 Jul 2017 23:17:32 +0800 > Peng Hao wrote: > > > When a guest that has several hotplugged dimms is migrated, in > > destination host it will fail to resume. Because vhost regions of > > several dimms in source host are merged and in the res

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-19 Thread no-reply
Hi, This series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Subject: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge Message-id: 1500477452-59643-1-git

Re: [Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-19 Thread Igor Mammedov
On Wed, 19 Jul 2017 23:17:32 +0800 Peng Hao wrote: > When a guest that has several hotplugged dimms is migrated, in > destination host it will fail to resume. Because vhost regions of > several dimms in source host are merged and in the restore stage > in destination host it computes whether more

[Qemu-devel] [PATCH] vhost: fix a migration failed because of vhost region merge

2017-07-19 Thread Peng Hao
When a guest that has several hotplugged dimms is migrated, in destination host it will fail to resume. Because vhost regions of several dimms in source host are merged and in the restore stage in destination host it computes whether more than vhost slot limit before merging vhost regions of severa