Re: [Xen-devel] [PATCH RFC 4/4] xen: arch-specific hooks for domain_soft_reset()

2015-06-25 Thread Tim Deegan
At 11:44 +0200 on 22 Jun (1434973458), Vitaly Kuznetsov wrote: > Tim Deegan writes: > > > At 15:35 +0200 on 03 Jun (1433345722), Vitaly Kuznetsov wrote: > >> x86-specific hook cleans up the pirq-emuirq mappings and replaces the > >> shared_info frame with an empty page to support subsequent > >>

Re: [Xen-devel] [PATCH RFC 4/4] xen: arch-specific hooks for domain_soft_reset()

2015-06-22 Thread Vitaly Kuznetsov
Tim Deegan writes: > At 15:35 +0200 on 03 Jun (1433345722), Vitaly Kuznetsov wrote: >> x86-specific hook cleans up the pirq-emuirq mappings and replaces the >> shared_info frame with an empty page to support subsequent >> XENMAPSPACE_shared_info call. > > That's a bit roundabout. I think we migh

Re: [Xen-devel] [PATCH RFC 4/4] xen: arch-specific hooks for domain_soft_reset()

2015-06-08 Thread Vitaly Kuznetsov
"Jan Beulich" writes: On 03.06.15 at 15:35, wrote: >> +int arch_domain_soft_reset(struct domain *d) >> +{ >> +struct page_info *page = virt_to_page(d->shared_info), *new_page; >> +int ret = 0; >> +struct domain *owner; >> +unsigned long mfn, mfn_new, gfn; >> +p2m_type_t

Re: [Xen-devel] [PATCH RFC 4/4] xen: arch-specific hooks for domain_soft_reset()

2015-06-08 Thread Jan Beulich
>>> On 03.06.15 at 15:35, wrote: > +int arch_domain_soft_reset(struct domain *d) > +{ > +struct page_info *page = virt_to_page(d->shared_info), *new_page; > +int ret = 0; > +struct domain *owner; > +unsigned long mfn, mfn_new, gfn; > +p2m_type_t __p2mt; No need for leading und

Re: [Xen-devel] [PATCH RFC 4/4] xen: arch-specific hooks for domain_soft_reset()

2015-06-04 Thread Tim Deegan
At 15:35 +0200 on 03 Jun (1433345722), Vitaly Kuznetsov wrote: > x86-specific hook cleans up the pirq-emuirq mappings and replaces the > shared_info frame with an empty page to support subsequent > XENMAPSPACE_shared_info call. That's a bit roundabout. I think we might be better off allocating a

[Xen-devel] [PATCH RFC 4/4] xen: arch-specific hooks for domain_soft_reset()

2015-06-03 Thread Vitaly Kuznetsov
x86-specific hook cleans up the pirq-emuirq mappings and replaces the shared_info frame with an empty page to support subsequent XENMAPSPACE_shared_info call. ARM-specific hook is a noop for now. Signed-off-by: Vitaly Kuznetsov --- xen/arch/arm/domain.c| 5 xen/arch/x86/domain.c|