Signed-off-by: Lei Li
---
net/tap.c | 40 +++-
1 files changed, 3 insertions(+), 37 deletions(-)
diff --git a/net/tap.c b/net/tap.c
index 39c1cda..97ee2e8 100644
--- a/net/tap.c
+++ b/net/tap.c
@@ -39,6 +39,7 @@
#include "sysemu/sysemu.h"
#inc
Signed-off-by: Lei Li
---
Makefile |2 +-
qemu-bridge-helper.c | 31 +++
2 files changed, 4 insertions(+), 29 deletions(-)
diff --git a/Makefile b/Makefile
index bdff4e4..6850f35 100644
--- a/Makefile
+++ b/Makefile
@@ -195,7 +195,7 @@ qemu-img
Signed-off-by: Lei Li
---
fsdev/virtfs-proxy-helper.c | 51 ++
hw/9pfs/virtio-9p-proxy.h |5
2 files changed, 8 insertions(+), 48 deletions(-)
diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
index 713a7b2..44c6e61
Signed-off-by: Lei Li
---
hw/9pfs/virtio-9p-proxy.c | 60 ++--
1 files changed, 3 insertions(+), 57 deletions(-)
diff --git a/hw/9pfs/virtio-9p-proxy.c b/hw/9pfs/virtio-9p-proxy.c
index 5f44bb7..f34b845 100644
--- a/hw/9pfs/virtio-9p-proxy.c
+++ b/hw
could
help on verifying whether it has impact on it. :)
Please let me know if there is anything needs to be improved.
Thanks
Changes since V1:
-- Copy right and typo fixes pointed out by Eric.
-- Don't cast 'char *' to 'int *' from Daniel.
-- Get rid of local mig
Signed-off-by: Lei Li
---
include/qemu/fd-exchange.h | 25 +++
util/Makefile.objs |1 +
util/qemu-fd-exchange.c| 97
3 files changed, 123 insertions(+), 0 deletions(-)
create mode 100644 include/qemu/fd-exchange.h
create
On 01/17/2014 06:02 PM, Daniel P. Berrange wrote:
On Wed, Jan 08, 2014 at 05:12:51PM +0800, Lei Li wrote:
Signed-off-by: Lei Li
---
include/qemu/fd-exchange.h | 25 +++
util/Makefile.objs |1 +
util/qemu-fd-exchange.c| 97
On 01/16/2014 11:26 PM, Eric Blake wrote:
On 01/08/2014 02:12 AM, Lei Li wrote:
Signed-off-by: Lei Li
---
include/qemu/fd-exchange.h | 25 +++
util/Makefile.objs |1 +
util/qemu-fd-exchange.c| 97
3 files changed
On 01/16/2014 06:15 PM, Daniel P. Berrange wrote:
On Wed, Jan 08, 2014 at 05:12:54PM +0800, Lei Li wrote:
Signed-off-by: Lei Li
---
fsdev/virtfs-proxy-helper.c | 51 ++
hw/9pfs/virtio-9p-proxy.h |5
2 files changed, 8 insertions(+), 48
On 01/16/2014 06:16 PM, Daniel P. Berrange wrote:
On Wed, Jan 08, 2014 at 05:12:55PM +0800, Lei Li wrote:
Signed-off-by: Lei Li
---
hw/9pfs/virtio-9p-proxy.c | 60 ++--
1 files changed, 3 insertions(+), 57 deletions(-)
diff --git a/hw/9pfs/virtio
On 01/16/2014 11:16 PM, Eric Blake wrote:
On 01/08/2014 02:12 AM, Lei Li wrote:
Signed-off-by: Lei Li
---
include/qemu/fd-exchange.h | 25 +++
util/Makefile.objs |1 +
util/qemu-fd-exchange.c| 97
3 files changed
Any comments?
On 01/08/2014 05:12 PM, Lei Li wrote:
This patch series tries to refactor the functions used for
exchange of FD in current code, provide common methods
for it.
The series is based on the localhost migration with side channel
for ram series as it was already a good shape. But if
Signed-off-by: Lei Li
---
net/tap.c | 40 +++-
1 files changed, 3 insertions(+), 37 deletions(-)
diff --git a/net/tap.c b/net/tap.c
index 39c1cda..97ee2e8 100644
--- a/net/tap.c
+++ b/net/tap.c
@@ -39,6 +39,7 @@
#include "sysemu/sysemu.h"
#inc
Signed-off-by: Lei Li
---
include/qemu/fd-exchange.h | 25 +++
util/Makefile.objs |1 +
util/qemu-fd-exchange.c| 97
3 files changed, 123 insertions(+), 0 deletions(-)
create mode 100644 include/qemu/fd-exchange.h
create
Signed-off-by: Lei Li
---
migration-local.c | 52 +++-
1 files changed, 3 insertions(+), 49 deletions(-)
diff --git a/migration-local.c b/migration-local.c
index ce4c070..c01ba06 100644
--- a/migration-local.c
+++ b/migration-local.c
@@ -26,6
Signed-off-by: Lei Li
---
hw/9pfs/virtio-9p-proxy.c | 60 ++--
1 files changed, 3 insertions(+), 57 deletions(-)
diff --git a/hw/9pfs/virtio-9p-proxy.c b/hw/9pfs/virtio-9p-proxy.c
index 5f44bb7..f34b845 100644
--- a/hw/9pfs/virtio-9p-proxy.c
+++ b/hw
Signed-off-by: Lei Li
---
fsdev/virtfs-proxy-helper.c | 51 ++
hw/9pfs/virtio-9p-proxy.h |5
2 files changed, 8 insertions(+), 48 deletions(-)
diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
index 713a7b2..44c6e61
d.
Thanks.
Lei Li (6):
fd-exchange: provide common methods for exchange of fd
qemu-bridge-helper: replace send_fd with qemu_send_with_fd
net/tap: replace recv_fd with qemu_recv_with_fd
virtfs-proxy-helper: replace send_fd with qemu_send_with_fd
virtio-9p-proxy: replace v9fs_rece
Signed-off-by: Lei Li
---
Makefile |2 +-
qemu-bridge-helper.c | 31 +++
2 files changed, 4 insertions(+), 29 deletions(-)
diff --git a/Makefile b/Makefile
index bdff4e4..6850f35 100644
--- a/Makefile
+++ b/Makefile
@@ -195,7 +195,7 @@ qemu-img
On 12/03/2013 07:52 PM, Paolo Bonzini wrote:
Il 03/12/2013 12:19, Lei Li ha scritto:
On 12/02/2013 05:33 PM, Daniel P. Berrange wrote:
On Mon, Dec 02, 2013 at 05:19:06PM +0800, Lei Li wrote:
This patch adds send_pipefd() to pass the pipe file descriptor
to destination process.
Signed-off-by
On 12/03/2013 07:35 PM, Daniel P. Berrange wrote:
On Tue, Dec 03, 2013 at 07:19:40PM +0800, Lei Li wrote:
On 12/02/2013 05:33 PM, Daniel P. Berrange wrote:
On Mon, Dec 02, 2013 at 05:19:06PM +0800, Lei Li wrote:
This patch adds send_pipefd() to pass the pipe file descriptor
to destination
On 12/02/2013 05:33 PM, Daniel P. Berrange wrote:
On Mon, Dec 02, 2013 at 05:19:06PM +0800, Lei Li wrote:
This patch adds send_pipefd() to pass the pipe file descriptor
to destination process.
Signed-off-by: Lei Li
---
migration-local.c | 46
Adds argument ram_addr_t to hook_ram_load, and replaces
QEMURamHookFunc with QEMURamLoadHookFunc for it. With this
new argument, it will allow cut almost half of the data
transferred on the Unix socket using by page flipping
migraton.
Signed-off-by: Lei Li
---
arch_init.c
be caughted.
Signed-off-by: Lei Li
---
migration-local.c | 59 ++--
1 files changed, 56 insertions(+), 3 deletions(-)
diff --git a/migration-local.c b/migration-local.c
index 9453ec8..5f98a01 100644
--- a/migration-local.c
+++ b/migration-local.c
Signed-off-by: Lei Li
---
migration.c |7 +--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/migration.c b/migration.c
index e012cd4..7e0ec33 100644
--- a/migration.c
+++ b/migration.c
@@ -582,7 +582,7 @@ static void *migration_thread(void *opaque)
if
Add page flipping support on unix outgoing part by stopping
VM with the new RunState RUN_STATE_MEMORY_STALE before
invoking migration if unix_page_flipping enabled.
Signed-off-by: Lei Li
---
migration-unix.c | 11 +++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a
As there might be more capabilities introduced, better to display
it in lines.
Reviewed-by: Paolo Bonzini
Signed-off-by: Lei Li
---
hmp.c |5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/hmp.c b/hmp.c
index 32ee285..dcfa2f9 100644
--- a/hmp.c
+++ b/hmp.c
@@ -226,13
Replace qemu_fopen_socket with qemu_fopen_socket_local in Unix
protocol migration.
Signed-off-by: Lei Li
---
migration-unix.c | 18 ++
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/migration-unix.c b/migration-unix.c
index 651fc5b..9beeafe 100644
--- a
Introduce new RunState RUN_STATE_MEMORY_STALE and
add it to runstate_needs_reset().
Signed-off-by: Lei Li
---
qapi-schema.json |7 +--
vl.c | 13 -
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/qapi-schema.json b/qapi-schema.json
index ea910ef
This patch exports MemoryRegion to save_page hook, replacing
argument ram_addr_t block_offset with a MemoryRegion suggested
by Paolo Bonzini.
Signed-off-by: Lei Li
---
arch_init.c |4 ++--
include/migration/migration.h |2 +-
include/migration/qemu-file.h |8
Override hook_ram_load to receive the pipe file descriptor
passed by source process and page address which will be
extracted to vmsplice the page data from pipe.
Signed-off-by: Lei Li
---
migration-local.c | 59 +
1 files changed, 59
Bonzini
Signed-off-by: Lei Li
---
savevm.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/savevm.c b/savevm.c
index 06c1f29..137e74f 100644
--- a/savevm.c
+++ b/savevm.c
@@ -668,7 +668,8 @@ size_t ram_control_save_page(QEMUFile *f, MemoryRegion *mr,
ram_addr_t offset
incoming side as well.
Signed-off-by: Lei Li
---
migration-local.c | 63 +
1 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/migration-local.c b/migration-local.c
index f479530..9453ec8 100644
--- a/migration-local.c
+++ b/migration
This patch adds send_pipefd() to pass the pipe file descriptor
to destination process.
Signed-off-by: Lei Li
---
migration-local.c | 46 ++
1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/migration-local.c b/migration-local.c
index
Add qemu_fopen_socket_local() to open QEMUFileLocal introduced
earlier. It will create a pipe in write mode if unix_page_flipping
is enabled, adjust qemu_local_close() to close pipe as well.
Signed-off-by: Lei Li
---
include/migration/qemu-file.h |2 +
migration-local.c | 46
Signed-off-by: Paolo Bonzini
Signed-off-by: Lei Li
---
qmp-commands.hx |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/qmp-commands.hx b/qmp-commands.hx
index fba15cd..0df08c0 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -2898,6 +2898,10 @@ migrate-set
This patch adds QEMUFileLocal with copy of socket based QEMUFile, will
be used as the basis code for Unix socket protocol migration and page
flipping migration.
Signed-off-by: Lei Li
---
Makefile.target |1 +
migration-local.c | 123
djustment of the current
migration process with page flipping.
Lei Li (17):
QAPI: introduce magration capability unix_page_flipping
migration: add migrate_unix_page_flipping()
qmp-command.hx: add missing docs for migration capabilites
migration-local: add QEMUFileLocal with socket bas
Add migrate_unix_page_flipping() to check if
MIGRATION_CAPABILITY_X_UNIX_PAGE_FLIPPING is enabled.
Reviewed-by: Paolo Bonzini
Signed-off-by: Lei Li
---
include/migration/migration.h |3 +++
migration.c |9 +
2 files changed, 12 insertions(+), 0 deletions
Introduce x_unix_page_flipping to MigrationCapability for
localhost migration.
Signed-off-by: Paolo Bonzini
Signed-off-by: Lei Li
---
qapi-schema.json | 12 +++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/qapi-schema.json b/qapi-schema.json
index 83fa485..ea910ef
On 11/29/2013 06:26 PM, Paolo Bonzini wrote:
Il 29/11/2013 11:06, Lei Li ha scritto:
This patch series tries to introduce a mechanism using side
channel pipe for RAM via SCM_RIGHTS with unix domain socket
protocol migration.
This side channel is used for the page flipping by vmsplice,
which is
On 11/29/2013 07:14 PM, Daniel P. Berrange wrote:
On Fri, Nov 29, 2013 at 06:06:13PM +0800, Lei Li wrote:
This patch adds send_pipefd() to pass the pipe file descriptor
to destination process.
Signed-off-by: Lei Li
---
migration-local.c | 46
Override hook_ram_load to receive the pipe file descriptor
passed by source process and page address which will be
extracted to vmsplice the page data from pipe.
Signed-off-by: Lei Li
---
migration-local.c | 59 +
1 files changed, 59
This patch adds QEMUFileLocal with copy of socket based QEMUFile, will
be used as the basis code for Unix socket protocol migration and page
flipping migration.
Signed-off-by: Lei Li
---
Makefile.target |1 +
migration-local.c | 123
Signed-off-by: Lei Li
---
migration.c |7 +--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/migration.c b/migration.c
index 4ac466b..68b5b02 100644
--- a/migration.c
+++ b/migration.c
@@ -582,7 +582,7 @@ static void *migration_thread(void *opaque)
if
Add page flipping support on unix outgoing part by stopping
VM with the new RunState RUN_STATE_MEMORY_STALE before
invoking migration if unix_page_flipping enabled.
Signed-off-by: Lei Li
---
migration-unix.c | 11 +++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a
Relace qemu_fopen_socket with qemu_fopen_socket_local in Unix
protocol migration.
Signed-off-by: Lei Li
---
migration-unix.c | 18 ++
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/migration-unix.c b/migration-unix.c
index 651fc5b..9beeafe 100644
--- a
As there might be more capabilities introduced, better to display
it in lines.
Reviewed-by: Paolo Bonzini
Signed-off-by: Lei Li
---
hmp.c |5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/hmp.c b/hmp.c
index 32ee285..dcfa2f9 100644
--- a/hmp.c
+++ b/hmp.c
@@ -226,13
Bonzini
Signed-off-by: Lei Li
---
savevm.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/savevm.c b/savevm.c
index 06c1f29..137e74f 100644
--- a/savevm.c
+++ b/savevm.c
@@ -668,7 +668,8 @@ size_t ram_control_save_page(QEMUFile *f, MemoryRegion *mr,
ram_addr_t offset
incoming side as well.
Signed-off-by: Lei Li
---
migration-local.c | 63 +
1 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/migration-local.c b/migration-local.c
index f479530..0a41c69 100644
--- a/migration-local.c
+++ b/migration
Adds argument ram_addr_t to hook_ram_load, and replaces
QEMURamHookFunc with QEMURamLoadHookFunc for it. With this
new argument, it will allows cut almost half of the data
transferred on the Unix socket using by page flipping
migraton.
Signed-off-by: Lei Li
---
arch_init.c
Introduce new RanState RAN_STATE_MEMORY_STALE and
add it to runstate_needs_reset().
Signed-off-by: Lei Li
---
qapi-schema.json |7 +--
vl.c | 13 -
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/qapi-schema.json b/qapi-schema.json
index b290a0f
This patch exports MemoryRegion to save_page hook, replacing
argument ram_addr_t block_offset with a MemoryRegion suggested
by Paolo Bonzini.
Signed-off-by: Lei Li
---
arch_init.c |4 ++--
include/migration/migration.h |2 +-
include/migration/qemu-file.h |8
be caughted.
Signed-off-by: Lei Li
---
migration-local.c | 59 ++--
1 files changed, 56 insertions(+), 3 deletions(-)
diff --git a/migration-local.c b/migration-local.c
index 0a41c69..76ec306 100644
--- a/migration-local.c
+++ b/migration-local.c
This patch adds send_pipefd() to pass the pipe file descriptor
to destination process.
Signed-off-by: Lei Li
---
migration-local.c | 46 ++
1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/migration-local.c b/migration-local.c
index
Add migrate_unix_page_flipping() to check if
MIGRATION_CAPABILITY_UNIX_PAGE_FLIPPING is enabled.
Reviewed-by: Paolo Bonzini
Signed-off-by: Lei Li
---
include/migration/migration.h |3 +++
migration.c |9 +
2 files changed, 12 insertions(+), 0 deletions
Signed-off-by: Paolo Bonzini
Signed-off-by: Lei Li
---
qmp-commands.hx |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/qmp-commands.hx b/qmp-commands.hx
index fba15cd..dcec433 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -2898,6 +2898,10 @@ migrate-set
Add qemu_fopen_socket_local() to open QEMUFileLocal introduced
earlier. It will create a pipe in write mode if unix_page_flipping
is enabled, adjust qemu_local_close() to close pipe as well.
Signed-off-by: Lei Li
---
include/migration/qemu-file.h |2 +
migration-local.c | 46
Introduce unix_page_flipping to MigrationCapability for
localhost migration.
Signed-off-by: Paolo Bonzini
Signed-off-by: Lei Li
---
qapi-schema.json | 10 +-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/qapi-schema.json b/qapi-schema.json
index 83fa485..b290a0f
asis of code and adjust the way
of overriding RDMA hooks.
- Involve the vmsplice for page flipping.
- Add new RunState RUN_STATE_FLIPPING_MIGRATE and add it to
runstate_needs_reset() for the adjustment of the current
migration process with page flipping.
Lei Li (17)
On 11/26/2013 10:11 PM, Paolo Bonzini wrote:
Il 26/11/2013 14:53, Lei Li ha scritto:
1) ram_save_setup stage, it will send all the bytes in this stages
to destination, and send_pipefd by ram_control_before_iterate
at the end of it.
ram_save_setup runs doesn't send anything from
On 11/26/2013 08:28 PM, Paolo Bonzini wrote:
Il 21/11/2013 10:11, Lei Li ha scritto:
{ RUN_STATE_DEBUG, RUN_STATE_SUSPENDED },
DEBUG -> MEMORY_STALE is missing.
Good catch, I will add it, thanks. :)
Paolo
{ RUN_STATE_RUNNING, RUN_STATE_SUSPEN
On 11/26/2013 07:31 PM, Paolo Bonzini wrote:
Il 21/11/2013 10:11, Lei Li ha scritto:
+/*
+ * recvmsg is called here to catch the control message for
+ * the exchange of PIPE file descriptor until it is received.
+ */
+len = recvmsg(s
On 11/26/2013 08:54 PM, Paolo Bonzini wrote:
Il 26/11/2013 13:03, Lei Li ha scritto:
+if (pending_size && pending_size >= max_size &&
+!runstate_needs_reset()) {
qemu_savevm_state_iterate(s->file);
I'm not sure why you
On 11/26/2013 07:25 PM, Paolo Bonzini wrote:
Il 21/11/2013 10:11, Lei Li ha scritto:
+static int qemu_local_ram_load(QEMUFile *f, void *opaque,
+ uint64_t flags)
+{
+QEMUFileLocal *s = opaque;
+ram_addr_t addr;
+struct iovec iov;
+ssize_t ret
On 11/26/2013 07:22 PM, Paolo Bonzini wrote:
Il 21/11/2013 10:11, Lei Li ha scritto:
This patch implements save_page callback for the outside
of page flipping. It will write the address of the page
on the Unix socket and flip the page data on pipe by
vmsplice(). Every page address would have a
On 11/26/2013 07:32 PM, Paolo Bonzini wrote:
Il 21/11/2013 10:11, Lei Li ha scritto:
Signed-off-by: Lei Li
---
migration.c | 10 +++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/migration.c b/migration.c
index 4ac466b..0f98ac1 100644
--- a/migration.c
+++ b
On 11/21/2013 05:11 PM, Lei Li wrote:
The control message for exchange of pipe file descriptor should
be received by recvmsg, and it might be eaten to stream file by
qemu_recv() when receiving by two callbacks. So this patch adds
unix_msgfd_lookup() to callback get_buffer as the only one
On 11/25/2013 05:48 PM, Paolo Bonzini wrote:
Il 25/11/2013 08:29, Lei Li ha scritto:
In this case, if the migration would fail just because the misconfiguration
of device state on destination, in the meantime the outgoing migration has
no aware of this failure, I think it should add such
On 11/22/2013 07:36 PM, Paolo Bonzini wrote:
Il 22/11/2013 12:29, Lei Li ha scritto:
During the page flipping migration, ram page of source guest would
be flipped to the destination, that's why the source guest can not
be resumed. AFAICT, the page flipping migration may fail at the
conne
On 11/21/2013 06:19 PM, Daniel P. Berrange wrote:
On Thu, Nov 21, 2013 at 05:11:23PM +0800, Lei Li wrote:
This patch series tries to introduce a mechanism using side
channel pipe for RAM via SCM_RIGHTS with unix domain socket
protocol migration.
This side channel is used for the page flipping
Override hook_ram_load to receive the pipe file descriptor
passed by source process and page address which will be
extracted to vmsplice the page data from pipe.
Signed-off-by: Lei Li
---
migration-local.c | 55 +
1 files changed, 55
incoming side as well.
Signed-off-by: Lei Li
---
migration-local.c | 54 +
1 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/migration-local.c b/migration-local.c
index 0f0896b..14207e9 100644
--- a/migration-local.c
+++ b/migration
Introduce new RanState RAN_STATE_MEMORY_STALE and
add it to runstate_needs_reset().
Signed-off-by: Lei Li
---
qapi-schema.json |7 +--
vl.c | 12 +++-
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/qapi-schema.json b/qapi-schema.json
index b290a0f
IGRATE and add it to
runstate_needs_reset() for the adjustment of the current
migration process with page flipping.
Lei Li (17):
QAPI: introduce magration capability unix_page_flipping
migration: add migrate_unix_page_flipping()
qmp-command.hx: add missing docs for migration capabilites
This patch adds QEMUFileLocal with copy of socket based QEMUFile, will
be used as the basis code for Unix socket protocol migration and page
flipping migration.
Signed-off-by: Lei Li
---
Makefile.target |1 +
migration-local.c | 121
As there might be more capabilities introduced, better to display
it in lines.
Reviewed-by: Paolo Bonzini
Signed-off-by: Lei Li
---
hmp.c |5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/hmp.c b/hmp.c
index 32ee285..dcfa2f9 100644
--- a/hmp.c
+++ b/hmp.c
@@ -226,13
This patch exports MemoryRegion to save_page hook, replacing
argument ram_addr_t block_offset with a MemoryRegion suggested
by Paolo Bonzini.
Signed-off-by: Lei Li
---
arch_init.c |4 ++--
include/migration/migration.h |2 +-
include/migration/qemu-file.h |8
Signed-off-by: Lei Li
---
migration.c | 10 +++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/migration.c b/migration.c
index 4ac466b..0f98ac1 100644
--- a/migration.c
+++ b/migration.c
@@ -579,10 +579,11 @@ static void *migration_thread(void *opaque
Add page flipping support on unix outgoing part by stopping
VM with the new RunState RUN_STATE_MEMORY_STALE before
invoking migration if unix_page_flipping enabled.
Signed-off-by: Lei Li
---
migration-unix.c | 11 +++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a
Bonzini
Signed-off-by: Lei Li
---
savevm.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/savevm.c b/savevm.c
index 3ee256e..4576145 100644
--- a/savevm.c
+++ b/savevm.c
@@ -668,7 +668,8 @@ size_t ram_control_save_page(QEMUFile *f, MemoryRegion *mr,
ram_addr_t offset
Relace qemu_fopen_socket with qemu_fopen_socket_local in Unix
protocol migration.
Signed-off-by: Lei Li
---
migration-unix.c | 18 ++
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/migration-unix.c b/migration-unix.c
index 651fc5b..9beeafe 100644
--- a
This patch adds send_pipefd() to pass the pipe file descriptor
to destination process.
Signed-off-by: Lei Li
---
migration-local.c | 53 +
1 files changed, 53 insertions(+), 0 deletions(-)
diff --git a/migration-local.c b/migration-local.c
Override before_ram_iterate to send pipefd. It will qemu_fflush
the stream QEMUFile and send it in RAM_CONTROL_SETUP stage.
Signed-off-by: Lei Li
---
migration-local.c | 25 +
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/migration-local.c b/migration
Signed-off-by: Paolo Bonzini
Signed-off-by: Lei Li
---
qmp-commands.hx |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/qmp-commands.hx b/qmp-commands.hx
index fba15cd..dcec433 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -2898,6 +2898,10 @@ migrate-set
Add qemu_fopen_socket_local() to open QEMUFileLocal introduced
earlier. It will create a pipe in write mode if unix_page_flipping
is enabled, adjust qemu_local_close() to close pipe as well.
Signed-off-by: Lei Li
---
include/migration/qemu-file.h |2 +
migration-local.c | 46
be caughted.
Signed-off-by: Lei Li
---
migration-local.c | 68 ++--
1 files changed, 65 insertions(+), 3 deletions(-)
diff --git a/migration-local.c b/migration-local.c
index e028beb..0f0896b 100644
--- a/migration-local.c
+++ b/migration-local.c
Introduce unix_page_flipping to MigrationCapability for
localhost migration.
Signed-off-by: Paolo Bonzini
Signed-off-by: Lei Li
---
qapi-schema.json | 10 +-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/qapi-schema.json b/qapi-schema.json
index 83fa485..b290a0f
Add migrate_unix_page_flipping() to check if
MIGRATION_CAPABILITY_UNIX_PAGE_FLIPPING is enabled.
Reviewed-by: Paolo Bonzini
Signed-off-by: Lei Li
---
include/migration/migration.h |3 +++
migration.c |9 +
2 files changed, 12 insertions(+), 0 deletions
On 10/25/2013 08:24 PM, Lei Li wrote:
On 10/25/2013 03:30 PM, Paolo Bonzini wrote:
Il 25/10/2013 06:58, Lei Li ha scritto:
Right now just has inaccurate numbers without the new vmsplice, which
based on
the result from info migrate, as the guest ram size increases,
although the
'total
Ping^2
On 10/24/2013 08:21 PM, Lei Li wrote:
This patch has been confirmed by the reporter himself as
link below,
https://bugs.launchpad.net/qemu/+bug/1216368
It has been on the mailing list for a while, could it be merged? PING...
On 09/04/2013 05:07 PM, Lei Li wrote:
Currently, If the
This patch exports MemoryRegion to save_page hook, replacing
argument ram_addr_t block_offset with a MemoryRegion suggested
by Paolo Bonzini.
Signed-off-by: Lei Li
---
arch_init.c |4 ++--
include/migration/migration.h |2 +-
include/migration/qemu-file.h |8
Add migrate_unix_page_flipping() to check if
MIGRATION_CAPABILITY_UNIX_PAGE_FLIPPING is enabled.
Reviewed-by: Paolo Bonzini
Signed-off-by: Lei Li
---
include/migration/migration.h |3 +++
migration.c |9 +
2 files changed, 12 insertions(+), 0 deletions
Introduce unix_page_flipping to MigrationCapability for localhost
migration.
Signed-off-by: Paolo Bonzini
Signed-off-by: Lei Li
---
qapi-schema.json | 10 +-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/qapi-schema.json b/qapi-schema.json
index 60f3fd1..7cb88af
Signed-off-by: Paolo Bonzini
Signed-off-by: Lei Li
---
qmp-commands.hx |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/qmp-commands.hx b/qmp-commands.hx
index fba15cd..dcec433 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -2898,6 +2898,10 @@ migrate-set
This series is extracted from the lastest localhost migration
with side channel for ram patch set with comments from Paolo
fixed. Send it separately according to his suggestion.
Localhost migration with side channel for ram:
http://lists.gnu.org/archive/html/qemu-devel/2013-10/msg02787.html
Lei
On 10/25/2013 03:30 PM, Paolo Bonzini wrote:
Il 25/10/2013 06:58, Lei Li ha scritto:
Right now just has inaccurate numbers without the new vmsplice, which
based on
the result from info migrate, as the guest ram size increases, although the
'total time' is number of times less compare
On 10/25/2013 03:31 PM, Paolo Bonzini wrote:
Il 25/10/2013 05:30, Lei Li ha scritto:
I am not sure about the name; for one thing, the new state would apply
also to postcopy migration.
About the name, how about 'live-upgrade'?
OK, I'll add the transition between postcopy and
On 10/25/2013 03:23 PM, Paolo Bonzini wrote:
Il 25/10/2013 05:38, Lei Li ha scritto:
Just want to confirm, normally, should I take these 'otherwise looks
good/ok'
as a 'Reviewed-by' from you If the other comment is fixed in the update
version?
Depends on how much the patch
On 10/24/2013 10:17 PM, Paolo Bonzini wrote:
Il 22/10/2013 04:25, Lei Li ha scritto:
This patch series tries to introduce a mechanism using side
channel pipe for RAM via SCM_RIGHTS with unix domain socket
protocol migration.
This side channel is used for the page flipping by vmsplice,
which is
1 - 100 of 494 matches
Mail list logo