Re: [Xen-devel] [PATCH v2 08/16] SVM: use generic instruction decoding

2016-09-30 Thread Jan Beulich
>>> On 29.09.16 at 21:24, wrote: > On 28/09/16 09:13, Jan Beulich wrote: >> ... instead of custom handling. To facilitate this break out init code >> from _hvm_emulate_one() into the new hvm_emulate_init(), and make >> hvmemul_insn_fetch( globally available. > > ) > >> int __get_instruction_len

Re: [Xen-devel] [PATCH v2 08/16] SVM: use generic instruction decoding

2016-09-29 Thread Andrew Cooper
On 29/09/16 20:24, Andrew Cooper wrote: > >> --- a/xen/arch/x86/x86_emulate/x86_emulate.c >> +++ b/xen/arch/x86/x86_emulate/x86_emulate.c >> @@ -5200,3 +5214,89 @@ x86_emulate( >> #undef vex >> #undef override_seg >> #undef ea >> + >> +#ifdef __XEN__ >> + >> +#include >> + >> +struct x86_emulat

Re: [Xen-devel] [PATCH v2 08/16] SVM: use generic instruction decoding

2016-09-29 Thread Andrew Cooper
On 28/09/16 09:13, Jan Beulich wrote: > ... instead of custom handling. To facilitate this break out init code > from _hvm_emulate_one() into the new hvm_emulate_init(), and make > hvmemul_insn_fetch( globally available. ) > int __get_instruction_length_from_list(struct vcpu *v, > const