Re: [Xen-devel] [PATCH v3 12/25] x86emul: abstract out XCRn accesses

2018-02-02 Thread Jan Beulich
>>> On 02.02.18 at 14:29, wrote: > On 07/12/17 14:07, Jan Beulich wrote: >> --- a/tools/tests/x86_emulator/x86-emulate.c >> +++ b/tools/tests/x86_emulator/x86-emulate.c >> @@ -120,6 +120,19 @@ int emul_test_read_cr( >> return X86EMUL_UNHANDLEABLE; >> } >> >> +int emul_test_read_xcr( >> +

Re: [Xen-devel] [PATCH v3 12/25] x86emul: abstract out XCRn accesses

2018-02-02 Thread Andrew Cooper
On 07/12/17 14:07, Jan Beulich wrote: > --- a/tools/tests/x86_emulator/x86-emulate.c > +++ b/tools/tests/x86_emulator/x86-emulate.c > @@ -120,6 +120,19 @@ int emul_test_read_cr( > return X86EMUL_UNHANDLEABLE; > } > > +int emul_test_read_xcr( > +unsigned int reg, > +uint64_t *val, >

[Xen-devel] [PATCH v3 12/25] x86emul: abstract out XCRn accesses

2017-12-07 Thread Jan Beulich
Use hooks, just like done for other special purpose registers. This includes moving XCR0 checks from hvmemul_get_fpu() to the emulator itself as well as adding support for XGETBV emulation. For now fuzzer reads will obtain the real values (minus the fuzzing of the hook pointer itself). Signed-of