remote_page_size);
+ret = -EINVAL;
+}
+}
ram_control_load_hook(f, RAM_CONTROL_BLOCK_REG,
block->idstr);
} else {
--
Best regards,
Alexey Perevalov
Hello Andrea,
On Fri, Feb 17, 2017 at 05:47:30PM +0100, Andrea Arcangeli wrote:
> Hello Alexey,
>
> On Tue, Feb 14, 2017 at 05:48:25PM +0300, Alexey Perevalov wrote:
> > On Mon, Feb 13, 2017 at 06:57:22PM +0100, Andrea Arcangeli wrote:
> > > Hello,
> > >
&g
Hello David,
On Tue, Feb 14, 2017 at 07:34:26PM +, Dr. David Alan Gilbert wrote:
> * Alexey Perevalov (a.pereva...@samsung.com) wrote:
> > Hi David,
> >
> > Thank your, now it's clear.
> >
> > On Mon, Feb 13, 2017 at 06:16:02PM +, Dr. David Alan Gilber
Hello David!
I have checked you series with 1G hugepage, but only in 1 Gbit/sec network
environment.
I started Ubuntu just with console interface and gave to it only 1G of
RAM, inside Ubuntu I started stress command
(stress --cpu 4 --io 4 --vm 4 --vm-bytes 25600 &)
in such environment
Hi David,
On Tue, Feb 21, 2017 at 10:03:14AM +, Dr. David Alan Gilbert wrote:
> * Alexey Perevalov (a.pereva...@samsung.com) wrote:
> >
> > Hello David,
>
> Hi Alexey,
>
> > On Tue, Feb 14, 2017 at 07:34:26PM +, Dr. David Alan Gilbert wrote:
>
On 02/27/2017 02:26 PM, Dr. David Alan Gilbert wrote:
* Alexey Perevalov (a.pereva...@samsung.com) wrote:
Hi David,
On Tue, Feb 21, 2017 at 10:03:14AM +, Dr. David Alan Gilbert wrote:
* Alexey Perevalov (a.pereva...@samsung.com) wrote:
Hello David,
Hi Alexey,
On Tue, Feb 14, 2017
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
linux-headers/linux/userfaultfd.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/linux-headers/linux/userfaultfd.h
b/linux-headers/linux/userfaultfd.h
index 2ed5dc3..7b299a2 100644
--- a/linux-headers/linux/userfaultfd.h
read state.
This patch is just for showing and idea, if you ok with this idea none RFC
patch will not
include proc access && a lot of traces.
Also I think it worth to guard postcopy_downtime in MigrationIncomingState and
return calculated downtime into src, where qeury-migration will be invocked.
comment to
get_postcopy_total_downtime function.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/migration.h | 11 ++
migration/migration.c | 238 +-
migration/postcopy-ram.c | 61 ++-
migration/sa
Hi Andrea,
thank you for so perfect design description,
the main question who will do RFC patches,
you or Mike or if you not against I could try.
On 03/14/2017 12:46 AM, Andrea Arcangeli wrote:
Hello,
On Mon, Mar 13, 2017 at 10:53:39AM +, Dr. David Alan Gilbert wrote:
* Alexey Perevalov
Hello,
On 03/18/2017 02:27 AM, Mike Kravetz wrote:
On 03/15/2017 06:47 AM, Alexey Perevalov wrote:
Hi Andrea,
thank you for so perfect design description,
the main question who will do RFC patches,
you or Mike or if you not against I could try.
Sorry for not replying sooner, I have been
On 04/04/2017 10:06 PM, Dr. David Alan Gilbert wrote:
* Alexey Perevalov (a.pereva...@samsung.com) wrote:
Hi David,
I already asked you about downtime calculation for postcopy live migration.
As I remember you said it's worth not to calculate it per vCPU or maybe I
understood you incorrectly
On 04/04/2017 10:01 PM, Dr. David Alan Gilbert wrote:
* Alexey Perevalov (a.pereva...@samsung.com) wrote:
This patch provides downtime calculation per vCPU,
as a summary and as a overlapped value for all vCPUs.
This approach just keeps tree with page fault addr as a key,
and t1-t2 interval
Userfaultfd mechanism is able to provide process thread id,
in case when client request it with UFDD_API ioctl.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/postcopy-ram.h | 2 +-
migration/migration.c| 2 +-
migration/postcopy-ram.c
This commit duplicates header of "userfaultfd: provide pid in userfault msg"
into linux kernel.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
linux-headers/linux/userfaultfd.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/linux-headers/linux/userfa
is commit 372b3fe0b2ecdd39ba850e31c0c6686315c507af.
It contains kernel side pages, just for convinience of applying current patch
set,
for testing util kernel headers arn't synced.
Alexey Perevalov (6):
userfault: add pid into uffd_msg & update UFFD_FEATURE_*
util: introduce glib-help
. For this purpose return path
socket was shosen.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/migration.h | 4 +++-
migration/migration.c | 20 ++--
migration/postcopy-ram.c | 1 +
3 files changed, 22 insertions(+), 3 del
It could help to track down vCPU state during page fault and
page fault sources.
This patch showes proc's status/stack/syscall file at the moment of pagefault,
it's very interesting to know who was page fault initiator.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
mig
for consolidation purpose.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
hw/block/xen_disk.c| 10 +-
include/glib-compat.h | 352 -
include/glib/glib-compat.h | 352 +
include/gli
comment to
get_postcopy_total_downtime function.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/migration.h | 14 +++
migration/migration.c | 280 +-
migration/postcopy-ram.c | 24 +++-
migration/qemu-
Hi, David, Andrea and Mike
The problem I want to discuss it's 1G hugepage based VM and post copy live
migration.
I would like to know your opinion on following approach of avoiding such
problem:
Once we have mmap'ed area through 1G hugetlbfs, remap physical pages
with /dev/mem. It will be 2
On 04/04/2017 08:57 PM, Dr. David Alan Gilbert wrote:
* Alexey Perevalov (a.pereva...@samsung.com) wrote:
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
linux-headers/linux/userfaultfd.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/linux-headers/linux/userfaultf
On 07/28/2017 10:06 AM, Alexey Perevalov wrote:
On 07/28/2017 09:57 AM, Peter Xu wrote:
On Fri, Jul 28, 2017 at 09:43:28AM +0300, Alexey Perevalov wrote:
On 07/28/2017 07:27 AM, Peter Xu wrote:
On Thu, Jul 27, 2017 at 10:27:41AM +0300, Alexey Perevalov wrote:
On 07/27/2017 05:35 AM, Peter Xu
is exists after remmap).
Bitmap is placed into RAMBlock as another postcopy/precopy
related bitmaps.
Reviewed-by: Peter Xu <pet...@redhat.com>
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/exec/ram_addr.h | 10 ++
migration/postcop
t...@redhat.com>
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/postcopy-ram.c | 34 +-
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index 996e64d..be497b
Need to mark copied pages as closer as possible to the place where it
tracks down. That will be necessary in futher patch.
Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
Reviewed-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com>
Sig
ch 'remotes/jnsnow/tags/ide-pull-request' into
staging"
Alexey Perevalov (3):
migration: postcopy_place_page factoring out
migration: introduce qemu_ufd_copy_ioctl helper
migration: add bitmap for received page
include/exec/ram_addr.h
On 07/27/2017 05:35 AM, Peter Xu wrote:
On Wed, Jul 26, 2017 at 06:24:11PM +0300, Alexey Perevalov wrote:
On 07/26/2017 11:43 AM, Peter Xu wrote:
On Wed, Jul 26, 2017 at 11:07:17AM +0300, Alexey Perevalov wrote:
On 07/26/2017 04:49 AM, Peter Xu wrote:
On Thu, Jul 20, 2017 at 09:52:34AM +0300
On 07/28/2017 09:57 AM, Peter Xu wrote:
On Fri, Jul 28, 2017 at 09:43:28AM +0300, Alexey Perevalov wrote:
On 07/28/2017 07:27 AM, Peter Xu wrote:
On Thu, Jul 27, 2017 at 10:27:41AM +0300, Alexey Perevalov wrote:
On 07/27/2017 05:35 AM, Peter Xu wrote:
On Wed, Jul 26, 2017 at 06:24:11PM +0300
On 07/28/2017 07:27 AM, Peter Xu wrote:
On Thu, Jul 27, 2017 at 10:27:41AM +0300, Alexey Perevalov wrote:
On 07/27/2017 05:35 AM, Peter Xu wrote:
On Wed, Jul 26, 2017 at 06:24:11PM +0300, Alexey Perevalov wrote:
On 07/26/2017 11:43 AM, Peter Xu wrote:
On Wed, Jul 26, 2017 at 11:07:17AM +0300
On 07/26/2017 04:49 AM, Peter Xu wrote:
On Thu, Jul 20, 2017 at 09:52:34AM +0300, Alexey Perevalov wrote:
This patch adds ability to track down already received
pages, it's necessary for calculation vCPU block time in
postcopy migration feature, maybe for restore after
postcopy migration
On 07/26/2017 11:43 AM, Peter Xu wrote:
On Wed, Jul 26, 2017 at 11:07:17AM +0300, Alexey Perevalov wrote:
On 07/26/2017 04:49 AM, Peter Xu wrote:
On Thu, Jul 20, 2017 at 09:52:34AM +0300, Alexey Perevalov wrote:
This patch adds ability to track down already received
pages, it's necessary
is exists after remmap).
Bitmap is placed into RAMBlock as another postcopy/precopy
related bitmaps.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/exec/ram_addr.h | 10 ++
migration/postcopy-ram.c | 16 +++-
migration/ram.c
Need to mark copied pages as closer as possible to the place where it
tracks down. That will be necessary in futher patch.
Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
Reviewed-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com>
Sig
t...@redhat.com>
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/postcopy-ram.c | 34 +-
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index 996e64d..be497b
t...@redhat.com>
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/postcopy-ram.c | 34 +-
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index dae41b5..293db9
Need to mark copied pages as closer as possible to the place where it
tracks down. That will be necessary in futher patch.
Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
Reviewed-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com>
Sig
uot;migration: introduce qemu_ufd_copy_ioctl helper"
Patchset is based on Juan's patchset:
[PATCH v2 0/5] Create setup/cleanup methods for migration incoming side
Alexey Perevalov (3):
migration: postcopy_place_page factoring out
migration: introduce qemu_ufd_copy_ioctl helper
migration: add bitma
is exists after remmap).
Bitmap is placed into RAMBlock as another postcopy/precopy
related bitmaps.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/exec/ram_addr.h | 10 ++
migration/migration.c| 1 +
migration/postcopy-ram.c | 16 +++-
migration
This patch add request to kernel space for UFFD_FEATURE_THREAD_ID,
in case when this feature is provided by kernel.
DowntimeContext is incapsulated inside migration.c.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/migration.h | 12
mig
This commit duplicates header of "userfaultfd: provide pid in userfault msg"
into linux kernel.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
linux-headers/linux/userfaultfd.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/linux-headers/linux/userfa
ontext has internal state, and after first call of
ioctl UFFD_API it changes its state to UFFD_STATE_RUNNING (in case of
success), but
kernel while handling ioctl UFFD_API expects UFFD_STATE_WAIT_API. So
only one ioctl with UFFD_API is possible per ufd.
Signed-off-by: Alexey Perevalov <a.pereva..
nce of applying current
patch set, for testing until kernel headers arn't synced.
Alexey Perevalov (6):
userfault: add pid into uffd_msg & update UFFD_FEATURE_*
migration: pass ptr to MigrationIncomingState into migration
ufd_version_check & postcopy_ram_supported_by_host
migra
field of
MigrationIncomingState wasn't initialized.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/migration.h | 3 ++
migration/migration.c | 103 ++
migration/postcopy-ram.c | 20 +++-
migration
It's not possible to transmit it back to source host,
due to RP protocol is not expandable.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/postcopy-ram.c | 2 ++
migration/trace-events | 1 +
2 files changed, 3 insertions(+)
diff --git a/migration/postcopy-r
That tiny refactoring is necessary to be able to set
UFFD_FEATURE_THREAD_ID while requesting features, and then
to create downtime context in case when kernel supports it.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/postcopy-ram.h | 2 +-
mig
On 04/25/2017 11:24 AM, Peter Xu wrote:
On Fri, Apr 14, 2017 at 04:17:18PM +0300, Alexey Perevalov wrote:
[...]
+/*
+ * This function calculates downtime per cpu and trace it
+ *
+ * Also it calculates total downtime as an interval's overlap,
+ * for many vCPU.
+ *
+ * The approach
On 04/25/2017 01:25 PM, Peter Xu wrote:
On Tue, Apr 25, 2017 at 01:10:30PM +0300, Alexey Perevalov wrote:
On 04/25/2017 11:24 AM, Peter Xu wrote:
On Fri, Apr 14, 2017 at 04:17:18PM +0300, Alexey Perevalov wrote:
[...]
+/*
+ * This function calculates downtime per cpu and trace
:
On Fri, Apr 21, 2017 at 06:22:12PM +0300, Alexey wrote:
On Fri, Apr 21, 2017 at 11:24:54AM +0100, Dr. David Alan Gilbert wrote:
* Alexey Perevalov (a.pereva...@samsung.com) wrote:
Userfaultfd mechanism is able to provide process thread id,
in case when client request it with UFDD_API ioctl.
Signed
On 04/28/2017 12:38 PM, Peter Xu wrote:
On Fri, Apr 28, 2017 at 09:57:36AM +0300, Alexey Perevalov wrote:
This patch add request to kernel space for UFFD_FEATURE_THREAD_ID,
in case when this feature is provided by kernel.
DowntimeContext is incapsulated inside migration.c.
Signed-off
On 04/28/2017 01:00 PM, Peter Xu wrote:
On Fri, Apr 28, 2017 at 09:57:37AM +0300, Alexey Perevalov wrote:
This patch provides downtime calculation per vCPU,
as a summary and as a overlapped value for all vCPUs.
This approach was suggested by Peter Xu, as an improvements of
previous approch
On 04/28/2017 12:01 PM, Peter Xu wrote:
On Fri, Apr 28, 2017 at 09:57:35AM +0300, Alexey Perevalov wrote:
This modification is necessary for userfault fd features which are
required to be requested from userspace.
UFFD_FEATURE_THREAD_ID is a one of such "on demand" feat
On 04/28/2017 01:58 PM, Alexey Perevalov wrote:
On 04/28/2017 12:01 PM, Peter Xu wrote:
On Fri, Apr 28, 2017 at 09:57:35AM +0300, Alexey Perevalov wrote:
This modification is necessary for userfault fd features which are
required to be requested from userspace.
UFFD_FEATURE_THREAD_ID is a one
This patch add request to kernel space for UFFD_FEATURE_THREAD_ID,
in case when this feature is provided by kernel.
DowntimeContext is incapsulated inside migration.c.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/migration.h | 12
mig
pull-tcg-20170426' into staging"
It contains patch for kernel header, just for convinience of applying current
patch set, for testing until kernel headers arn't synced.
Alexey Perevalov (6):
userfault: add pid into uffd_msg & update UFFD_FEATURE_*
migration: pass ptr to MigrationIncomingSta
field of
MigrationIncomingState wasn't initialized.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/migration.h | 3 ++
migration/migration.c | 103 ++
migration/postcopy-ram.c | 20 +++-
migration
ontext has internal state, and after first call of
ioctl UFFD_API it changes its state to UFFD_STATE_RUNNING (in case of
success), but
kernel while handling ioctl UFFD_API expects UFFD_STATE_WAIT_API. So
only one ioctl with UFFD_API is possible per ufd.
Signed-off-by: Alexey Perevalov <a.pereva..
That tiny refactoring is necessary to be able to set
UFFD_FEATURE_THREAD_ID while requesting features, and then
to create downtime context in case when kernel supports it.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/postcopy-ram.h | 2 +-
mig
This commit duplicates header of "userfaultfd: provide pid in userfault msg"
into linux kernel.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
linux-headers/linux/userfaultfd.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/linux-headers/linux/userfa
It's not possible to transmit it back to source host,
due to RP protocol is not expandable.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/postcopy-ram.c | 2 ++
migration/trace-events | 1 +
2 files changed, 3 insertions(+)
diff --git a/migration/postcopy-r
On 08/08/2017 08:06 PM, Dr. David Alan Gilbert wrote:
* Alexey Perevalov (a.pereva...@samsung.com) wrote:
On 06/28/2017 10:00 PM, Dr. David Alan Gilbert (git) wrote:
From: "Dr. David Alan Gilbert" <dgilb...@redhat.com>
Clear the area and turn off THP.
Signed-off-by: Dr. Da
is exists after remmap).
Bitmap is placed into RAMBlock as another postcopy/precopy
related bitmaps.
Reviewed-by: Peter Xu <pet...@redhat.com>
Signed-off-by: Peter Xu <pet...@redhat.com>
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/exec/ram_addr.h | 10 +++
here
it will be necessary
- releasing memory of receivedmap was added into ram_load_cleanup
- new patch "migration: introduce qemu_ufd_copy_ioctl helper"
Patchset is based on:
commit 6d60e295ef020759a03b90724d0342012c189ba2
"Merge remote-tracking branch 'remotes/jnsnow/tags/ide-
Need to mark copied pages as closer as possible to the place where it
tracks down. That will be necessary in futher patch.
Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
Reviewed-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com>
Sig
t...@redhat.com>
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/postcopy-ram.c | 34 +-
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index 996e64d..be497b
that I can rebase to. Thanks,
I'll squash it, and I'll resend it today.
Are you agree to add
Signed-off-by: Peter Xu <pet...@redhat.com>
to my patch?
--
Best regards,
Alexey Perevalov
On 08/01/2017 09:02 AM, Peter Xu wrote:
On Tue, Aug 01, 2017 at 08:48:18AM +0300, Alexey Perevalov wrote:
On 08/01/2017 05:11 AM, Peter Xu wrote:
On Mon, Jul 31, 2017 at 05:34:14PM +0100, Dr. David Alan Gilbert wrote:
* Peter Xu (pet...@redhat.com) wrote:
The bitmap setup during postcopy
ter reg_struct;
/* Note: We might need to go back to using mmap_addr and
* len + mmap_offset for * huge pages, but then we do hope not to
--
Best regards,
Alexey Perevalov
nux ifdef.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/postcopy-ram.c | 87 +++-
migration/trace-events | 5 ++-
2 files changed, 90 insertions(+), 2 deletions(-)
diff --git a/migration/postcopy-ram.c b/migration/postc
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/postcopy-ram.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index fbccc53..b6eccaf 100644
--- a/migration/postcopy-ram.c
+++ b/migration/po
This commit duplicates header of "userfaultfd: provide pid in userfault msg"
into linux kernel.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
linux-headers/linux/userfaultfd.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/linux-headers/linux/userfa
ontext has internal state, and after first call of
ioctl UFFD_API it changes its state to UFFD_STATE_RUNNING (in case of
success), but
kernel while handling ioctl UFFD_API expects UFFD_STATE_WAIT_API. So
only one ioctl with UFFD_API is possible per ufd.
Signed-off-by: Alexey Perevalov <a.pereva..
t contains patch for kernel header, just for convinience of applying current
patch set, for testing until kernel headers arn't synced. At the moment of
posting this patch set, "userfaultfd: provide pid in userfault msg" wasn't yet
merged into upstream.
Alexey Perevalov (9):
userfa
Right now it could be used on destination side to
enable vCPU blocktime calculation for postcopy live migration.
vCPU blocktime - it's time since vCPU thread was put into
interruptible sleep, till memory page was copied and thread awake.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.
it
[root@host]#printf "{\"execute\" : \"qmp_capabilities\"}\r\n \
{\"execute\": \"migrate-set-capabilities\" , \"arguments\": {
\"capabilities\": [ { \"capability\": \"postcopy-blocktime\", \"state\":
tr
"status": "completed",
"postcopy_blocktime": 100
}}
postcopy_vcpu_blocktime contains list, where the first item is the first
vCPU in QEMU.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/migration.h | 4 +++
migration/migration.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
docs/migration.txt | 10 ++
1 file changed, 10 insertions(+)
diff --git a/docs/migration.txt b/docs/migration.txt
index 1b940a8..d0f5a6d 100644
--- a/docs/migration.txt
+++ b/docs/migration.txt
@@ -402,6 +402,16 @@ wi
That tiny refactoring is necessary to be able to set
UFFD_FEATURE_THREAD_ID while requesting features, and then
to create downtime context in case when kernel supports it.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/migration.c| 2 +-
migration/postcopy
page address as value and vCPU
as index. It helps to find proper vCPU at UFFD_COPY time. Also it keeps
list for blocktime per vCPU (could be traced with page_fault_addr)
Blocktime will not calculated if postcopy_blocktime field of
MigrationIncomingState wasn't initialized.
Signed-off-by: Alexey
Right now it could be used on destination side to
enable vCPU blocktime calculation for postcopy live migration.
vCPU blocktime - it's time since vCPU thread was put into
interruptible sleep, till memory page was copied and thread awake.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
docs/migration.txt | 10 ++
1 file changed, 10 insertions(+)
diff --git a/docs/migration.txt b/docs/migration.txt
index 1b940a8..d0f5a6d 100644
--- a/docs/migration.txt
+++ b/docs/migration.txt
@@ -402,6 +402,16 @@ wi
This commit duplicates header of "userfaultfd: provide pid in userfault msg"
into linux kernel.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
linux-headers/linux/userfaultfd.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/linux-headers/linux/userfa
"status": "completed",
"postcopy_blocktime": 100
}}
postcopy_vcpu_blocktime contains list, where the first item is the first
vCPU in QEMU.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/migration.h | 4 +++
migration/migratio
it
[root@host]#printf "{\"execute\" : \"qmp_capabilities\"}\r\n \
{\"execute\": \"migrate-set-capabilities\" , \"arguments\": {
\"capabilities\": [ { \"capability\": \"postcopy-blocktime\", \"state\":
tr
That tiny refactoring is necessary to be able to set
UFFD_FEATURE_THREAD_ID while requesting features, and then
to create downtime context in case when kernel supports it.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/migration/postcopy-ram.h | 2 +-
mig
ting this patch set, "userfaultfd: provide pid in userfault msg" wasn't yet
merged into upstream.
Alexey Perevalov (9):
userfault: add pid into uffd_msg & update UFFD_FEATURE_*
migration: pass ptr to MigrationIncomingState into migration
ufd_version_check & postcopy_r
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/postcopy-ram.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index 4c859b4..0f75700 100644
--- a/migration/postcopy-ram.c
+++ b/migration/po
ontext has internal state, and after first call of
ioctl UFFD_API it changes its state to UFFD_STATE_RUNNING (in case of
success), but
kernel while handling ioctl UFFD_API expects UFFD_STATE_WAIT_API. So
only one ioctl with UFFD_API is possible per ufd.
Signed-off-by: Alexey Perevalov <a.pereva..
On 06/09/2017 07:10 AM, Peter Xu wrote:
On Wed, Jun 07, 2017 at 12:46:29PM +0300, Alexey Perevalov wrote:
That tiny refactoring is necessary to be able to set
UFFD_FEATURE_THREAD_ID while requesting features, and then
to create downtime context in case when kernel supports it.
Signed-off
On 06/09/2017 10:14 AM, Peter Xu wrote:
On Fri, Jun 09, 2017 at 09:21:38AM +0300, Alexey Perevalov wrote:
On 06/09/2017 07:10 AM, Peter Xu wrote:
On Wed, Jun 07, 2017 at 12:46:29PM +0300, Alexey Perevalov wrote:
That tiny refactoring is necessary to be able to set
UFFD_FEATURE_THREAD_ID while
On 06/09/2017 09:06 AM, Peter Xu wrote:
On Wed, Jun 07, 2017 at 05:13:00PM +0300, Alexey Perevalov wrote:
On 06/07/2017 12:46 PM, Alexey Perevalov wrote:
This patch adds ability to track down already copied
pages, it's necessary for calculation vCPU block time in
postcopy migration feature
be necessary
- releasing memory of receivedmap was added into ram_load_cleanup
- new patch "migration: introduce qemu_ufd_copy_ioctl helper"
Patchset is based on Juan's patchset:
[PATCH v2 0/5] Create setup/cleanup methods for migration incoming side
Alexey Perevalov (3):
migrati
Need to mark copied pages as closer as possible to the place where it
tracks down. That will be necessary in futher patch.
Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
Reviewed-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com>
Sig
is exists after remmap).
Bitmap is placed into RAMBlock as another postcopy/precopy
related bitmaps.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/exec/ram_addr.h | 10
migration/migration.c| 1 +
migration/postcopy-ram.c | 20
migration
t...@redhat.com>
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/postcopy-ram.c | 34 +-
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index dae41b5..293db9
is exists after remmap).
Bitmap is placed into RAMBlock as another postcopy/precopy
related bitmaps.
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
include/exec/ram_addr.h | 10 ++
migration/migration.c| 1 +
migration/postcopy-ram.c | 16 +++-
migration
Need to mark copied pages as closer as possible to the place where it
tracks down. That will be necessary in futher patch.
Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
Reviewed-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com>
Sig
patch set where
it will be necessary
- releasing memory of receivedmap was added into ram_load_cleanup
- new patch "migration: introduce qemu_ufd_copy_ioctl helper"
Patchset is based on Juan's patchset:
[PATCH v2 0/5] Create setup/cleanup methods for migration incoming side
Alexey
t...@redhat.com>
Signed-off-by: Alexey Perevalov <a.pereva...@samsung.com>
---
migration/postcopy-ram.c | 34 +-
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index dae41b5..293db9
wback, it combines states of incoming and
outgoing migration. Ongoing migration state will overwrite incoming
state. Looks like better to separate query-migrate for incoming and
outgoing migration or add parameter to indicate type of migration.
Signed-off-by: Alexey Perevalov <a.pereva...
1 - 100 of 249 matches
Mail list logo