Re: [Xen-devel] [PATCH v7 04/10] xen: Introduce XEN_DOMCTL_soft_reset

2015-05-28 Thread Jan Beulich
>>> On 28.05.15 at 15:53, wrote: > Tim Deegan writes: >> BTW having looked at how messy this is ending up, and how it's still >> incomplete, I'd agree with Jan that resetting the domain state might >> be a better approach. > > Even with the 'reset-everything' approach the function from this patc

Re: [Xen-devel] [PATCH v7 04/10] xen: Introduce XEN_DOMCTL_soft_reset

2015-05-28 Thread Vitaly Kuznetsov
Tim Deegan writes: > At 15:11 +0200 on 28 May (1432825919), Vitaly Kuznetsov wrote: >> Tim Deegan writes: >> > At 13:56 +0200 on 28 May (1432821360), Vitaly Kuznetsov wrote: >> >> Tim Deegan writes: >> >> >> +while ( next_page && !is_xen_heap_page(next_page) && >> >> >> +

Re: [Xen-devel] [PATCH v7 04/10] xen: Introduce XEN_DOMCTL_soft_reset

2015-05-28 Thread Tim Deegan
At 15:11 +0200 on 28 May (1432825919), Vitaly Kuznetsov wrote: > Tim Deegan writes: > > At 13:56 +0200 on 28 May (1432821360), Vitaly Kuznetsov wrote: > >> Tim Deegan writes: > >> >> +while ( next_page && !is_xen_heap_page(next_page) && > >> >> +page_to_mfn(next_page) == m

Re: [Xen-devel] [PATCH v7 04/10] xen: Introduce XEN_DOMCTL_soft_reset

2015-05-28 Thread Vitaly Kuznetsov
Tim Deegan writes: > At 13:56 +0200 on 28 May (1432821360), Vitaly Kuznetsov wrote: >> Tim Deegan writes: >> >> +last_gmfn = domain_get_maximum_gpfn(source_d); >> >> +gmfn = *gmfn_start; >> >> +while ( gmfn <= last_gmfn ) >> >> +{ >> >> +page = get_page_from_gfn(source_d,

Re: [Xen-devel] [PATCH v7 04/10] xen: Introduce XEN_DOMCTL_soft_reset

2015-05-28 Thread Tim Deegan
At 13:56 +0200 on 28 May (1432821360), Vitaly Kuznetsov wrote: > Tim Deegan writes: > >> +last_gmfn = domain_get_maximum_gpfn(source_d); > >> +gmfn = *gmfn_start; > >> +while ( gmfn <= last_gmfn ) > >> +{ > >> +page = get_page_from_gfn(source_d, gmfn, &p2mt, 0); > > > > In

Re: [Xen-devel] [PATCH v7 04/10] xen: Introduce XEN_DOMCTL_soft_reset

2015-05-28 Thread Vitaly Kuznetsov
Tim Deegan writes: > Hi, > > At 17:25 +0200 on 27 May (1432747540), Vitaly Kuznetsov wrote: >> New operation reassigns all memory pages from source domain to the >> destination >> domain mapping them at exactly the same GFNs. Pages mapped more than once >> (e.g. >> grants) are being copied. >>

Re: [Xen-devel] [PATCH v7 04/10] xen: Introduce XEN_DOMCTL_soft_reset

2015-05-28 Thread Tim Deegan
Hi, At 17:25 +0200 on 27 May (1432747540), Vitaly Kuznetsov wrote: > New operation reassigns all memory pages from source domain to the destination > domain mapping them at exactly the same GFNs. Pages mapped more than once > (e.g. > grants) are being copied. > > Signed-off-by: Vitaly Kuznetsov