[Xen-devel] [PATCH RFC v2 2/8] Modified xl stack to receieve mirror QEMU disk option

2017-10-18 Thread Bruno Alvisio
--- tools/ocaml/libs/xl/xenlight_stubs.c | 4 +-- tools/xl/xl.h| 1 + tools/xl/xl_migrate.c| 47 +--- tools/xl/xl_saverestore.c| 2 +- tools/xl/xl_vmcontrol.c | 5 ++-- 5 files changed, 45 insertio

[Xen-devel] [PATCH RFC v2 3/8] Adapted libxl to handle migration of instance with qemu based disks

2017-10-18 Thread Bruno Alvisio
--- tools/libxl/libxl.h | 11 ++- tools/libxl/libxl_create.c | 191 --- tools/libxl/libxl_dm.c | 26 -- tools/libxl/libxl_dom_save.c | 85 - tools/libxl/libxl_domain.c | 4 +- tools/libxl/libxl_inte

[Xen-devel] [PATCH RFC v2 5/8] Improved migration flow syntax in libxl

2017-10-18 Thread Bruno Alvisio
--- tools/libxl/libxl_create.c | 5 +++-- tools/libxl/libxl_dm.c | 10 +- tools/libxl/libxl_internal.h | 4 ++-- tools/libxl/libxl_save_callout.c | 41 +--- tools/libxl/libxl_save_helper.c | 15 ++- tools/libxl/libxl_ty

[Xen-devel] [PATCH RFC v2 6/8] Adapted libxc for migration of local disk

2017-10-18 Thread Bruno Alvisio
--- tools/libxc/include/xenguest.h| 6 +- tools/libxc/xc_nomigrate.c| 6 +- tools/libxc/xc_sr_common.h| 3 + tools/libxc/xc_sr_restore.c | 14 +++-- tools/libxc/xc_sr_save.c | 118 +- tools/libxc/xc_sr_save_x86_hvm.c |

[Xen-devel] [PATCH RFC v2 8/8] Added support to handle QMP events

2017-10-18 Thread Bruno Alvisio
--- tools/libxl/libxl_dom_save.c | 71 tools/libxl/libxl_qmp.c | 150 +-- 2 files changed, 170 insertions(+), 51 deletions(-) diff --git a/tools/libxl/libxl_dom_save.c b/tools/libxl/libxl_dom_save.c index ddfe2f8..d188dd2 100644 -

[Xen-devel] [PATCH RFC v2 0/8] Live migration for VMs with QEMU backed local storage

2017-10-18 Thread Bruno Alvisio
libxc is hardcoded. Only a VM with 128 MB of memory is supported. Here is a link to the branch in Github: https://github.com/balvisio/xen/tree/feature/local_storage_migration Any feedback/suggestion is appreciated. Cheers, Bruno Signed-off-by: Bruno Alvisio --- tools/libxc/include/

[Xen-devel] [PATCH RFC v2 7/8] Fixed bugs in the migration flow

2017-10-18 Thread Bruno Alvisio
--- tools/libxc/xc_sr_save.c | 1 - tools/libxl/libxl_create.c | 15 --- tools/libxl/libxl_dom_save.c | 2 +- tools/libxl/libxl_domain.c | 2 +- tools/libxl/libxl_internal.h | 2 +- tools/libxl/libxl_save_callout.c | 5 +++-- tools/libxl/libxl_stream_wr

[Xen-devel] [PATCH RFC v2 4/8] Remove stop NBD server command from xl

2017-10-18 Thread Bruno Alvisio
--- tools/xl/xl_migrate.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/tools/xl/xl_migrate.c b/tools/xl/xl_migrate.c index fee726f..9f43d96 100644 --- a/tools/xl/xl_migrate.c +++ b/tools/xl/xl_migrate.c @@ -427,17 +427,6 @@ static void migrate_receive(int debug, int daemonize, i

[Xen-devel] [PATCH RFC v2 1/8] Added QMP commands for adding NBD server and disk migration

2017-10-18 Thread Bruno Alvisio
--- tools/libxl/libxl_internal.h | 18 +++ tools/libxl/libxl_qmp.c | 125 ++- 2 files changed, 142 insertions(+), 1 deletion(-) diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 7247509..1349a8f 100644 --- a/tools/libx

[Xen-devel] Question about libxc-migration-stream.pandoc

2017-08-09 Thread Bruno Alvisio
Hello, In /docs/specs/libxc-migration-stream.pandoc "x86 HVM Guest" section states that: "HVM\_PARAMS must precede HVM\_CONTEXT, as certain parameters can affect the validity of architectural state in the context." (line 679) However, from the code it looks like the HVM_CONTEXT record is sent an

Re: [Xen-devel] [PATCH RFC] Live migration for VMs with QEMU backed local storage

2017-06-29 Thread Bruno Alvisio
process is moved to an earlier part of the domain creation process, how can I run a basic set of tests to validate that I am not breaking any functionality and causing a regression? Thanks, Bruno On Thu, Jun 29, 2017 at 7:58 AM, Wei Liu wrote: > On Fri, Jun 23, 2017 at 03:42:20AM -0400, Br

Re: [Xen-devel] [PATCH RFC] Live migration for VMs with QEMU backed local storage

2017-06-26 Thread Bruno Alvisio
QEMU. Thanks, Bruno On Mon, Jun 26, 2017 at 6:06 AM, George Dunlap wrote: > On Fri, Jun 23, 2017 at 9:03 AM, Roger Pau Monné > wrote: > > On Fri, Jun 23, 2017 at 03:42:20AM -0400, Bruno Alvisio wrote: > >> This patch is the first attempt on adding live migration of instance

[Xen-devel] [PATCH RFC] Live migration for VMs with QEMU backed local storage

2017-06-23 Thread Bruno Alvisio
t wanted to get an initial feedback if this is the path the should be pursued. Any suggestions and ideas on this patch or on how to make a more generic solution would be really appreciated. Signed-off-by: Bruno Alvisio --- tools/libxl/libxl.h | 16 - tools/libxl/libxl_create.c

[Xen-devel] [PATCH RFC] Live migration for VMs with QEMU backed local storage

2017-06-23 Thread Bruno Alvisio
t wanted to get an initial feedback if this is the path the should be pursued. Any suggestions and ideas on this patch or on how to make a more generic solution would be really appreciated. Signed-off-by: Bruno Alvisio --- tools/libxl/libxl.h | 16 - tools/libxl/libxl_create.c

[Xen-devel] Fwd: VM Live Migration with Local Storage

2017-06-11 Thread Bruno Alvisio
migrate the disk blocks? Any guidance/feedback for a more specific design is greatly appreciated. Thanks, Bruno On Wed, Feb 22, 2017 at 5:00 AM, Wei Liu wrote: > Hi Bruno > > Thanks for your interest. > > On Tue, Feb 21, 2017 at 10:34:45AM -0800, Bruno Alvisio wrote: > > Hel

Re: [Xen-devel] Question about QEMU as ide device emulator

2017-05-26 Thread Bruno Alvisio
Question has been answered. Thanks. On Thu, May 25, 2017 at 6:35 PM, Bruno Alvisio wrote: > Hello all, > > Summary > > I am using XEN hypervisor to run a HVM with a QEMU backed disk. After I > start the HVM I use QMP "query-block" command to see the devices of the

[Xen-devel] Question about QEMU as ide device emulator

2017-05-25 Thread Bruno Alvisio
Hello all, Summary I am using XEN hypervisor to run a HVM with a QEMU backed disk. After I start the HVM I use QMP "query-block" command to see the devices of the VM. Initially the command returns the disk that I set as part of the configuration but after a few seconds the "query-block" command

[Xen-devel] VM Live Migration with Local Storage

2017-02-21 Thread Bruno Alvisio
Hello, I have been to doing some research and as far as I know XEN supports Live Migration of VMs that only have shared storage. (i.e. iSCSI) If the VM has been booted with local storage it cannot be live migrated. QEMU seems to support live migration with local storage (I have tested using 'virsh