Re: [Xen-devel] [PATCH V2 1/3] xen/vm_access: Support for memory-content hiding

2015-06-26 Thread Jan Beulich
>>> On 26.06.15 at 11:49, wrote: > Sorry, I don't follow - I did truncate the data if bytes_per_rep > > curr->arch.vm_event.emul_read_data->size. But I'm passing reps on > untouched to hvmemul_do_pio(). Did I misunderstand the hvmemul_do_pio() > code? Should I pass a (*reps * bytes_per_rep) sized

Re: [Xen-devel] [PATCH V2 1/3] xen/vm_access: Support for memory-content hiding

2015-06-26 Thread Razvan Cojocaru
On 06/26/2015 11:44 AM, Jan Beulich wrote: @@ -891,14 +934,37 @@ static int hvmemul_rep_outs( >>>!!(ctxt->regs->eflags & X86_EFLAGS_DF), >>> NULL); >>> } >>> >>> -static int hvmemul_rep_movs( >>> +static int hvmemul_rep_outs_set_con

Re: [Xen-devel] [PATCH V2 1/3] xen/vm_access: Support for memory-content hiding

2015-06-26 Thread Jan Beulich
>>> On 26.06.15 at 10:22, wrote: > On 06/25/2015 06:57 PM, Jan Beulich wrote: > On 15.06.15 at 11:03, wrote: >>> --- a/xen/arch/x86/hvm/emulate.c >>> +++ b/xen/arch/x86/hvm/emulate.c >>> @@ -578,6 +578,28 @@ static int hvmemul_read( >>> container_of(ctxt, struct hvm_emulate_ctxt, ctx

Re: [Xen-devel] [PATCH V2 1/3] xen/vm_access: Support for memory-content hiding

2015-06-26 Thread Razvan Cojocaru
On 06/25/2015 06:57 PM, Jan Beulich wrote: On 15.06.15 at 11:03, wrote: >> --- a/xen/arch/x86/hvm/emulate.c >> +++ b/xen/arch/x86/hvm/emulate.c >> @@ -578,6 +578,28 @@ static int hvmemul_read( >> container_of(ctxt, struct hvm_emulate_ctxt, ctxt)); >> } >> >> +static int hvmemul_re

Re: [Xen-devel] [PATCH V2 1/3] xen/vm_access: Support for memory-content hiding

2015-06-25 Thread Jan Beulich
>>> On 15.06.15 at 11:03, wrote: > --- a/xen/arch/x86/hvm/emulate.c > +++ b/xen/arch/x86/hvm/emulate.c > @@ -578,6 +578,28 @@ static int hvmemul_read( > container_of(ctxt, struct hvm_emulate_ctxt, ctxt)); > } > > +static int hvmemul_read_set_context( > +enum x86_segment seg, > +