Re: [PATCH V8] x86/altp2m: Hypercall to set altp2m view visibility

2020-04-15 Thread Jan Beulich
On 13.04.2020 08:51, Alexandru Isaila wrote: > @@ -4786,6 +4787,19 @@ static int do_altp2m_op( > break; > } > > +case HVMOP_altp2m_set_visibility: > +{ > +unsigned int idx = a.u.set_visibility.altp2m_idx; > + > +if ( a.u.set_visibility.pad ) > +

Re: [PATCH V8] x86/altp2m: Hypercall to set altp2m view visibility

2020-04-13 Thread Wei Liu
On Mon, Apr 13, 2020 at 09:51:13AM +0300, Alexandru Isaila wrote: [...] > --- > tools/libxc/include/xenctrl.h | 7 +++ > tools/libxc/xc_altp2m.c | 24 +++ Acked-by: Wei Liu > xen/arch/x86/hvm/hvm.c | 14 ++ > xen/arch/x86/hvm/vmx/vmx.c

Ping: [PATCH V8] x86/altp2m: Hypercall to set altp2m view visibility

2020-04-13 Thread Isaila Alexandru
Hi, I need a review for the tools bits in this patch. Thanks, Alex On 13.04.2020 09:51, Alexandru Isaila wrote: At this moment a guest can call vmfunc to change the altp2m view. This should be limited in order to avoid any unwanted view switch. The new xc_altp2m_set_visibility() solves this

[PATCH V8] x86/altp2m: Hypercall to set altp2m view visibility

2020-04-13 Thread Alexandru Isaila
At this moment a guest can call vmfunc to change the altp2m view. This should be limited in order to avoid any unwanted view switch. The new xc_altp2m_set_visibility() solves this by making views invisible to vmfunc. This is done by having a separate arch.altp2m_working_eptp that is populated and