Re: [Xen-devel] [PATCH 4/8] x86emul: support BMI2 insns

2017-01-16 Thread Jan Beulich
>>> On 13.01.17 at 19:20, wrote: > On 13/01/17 15:32, Jan Beulich wrote: >> Note that the adjustment to the mode_64bit() definition is so that we >> can avoid "#ifdef __x86_64__" around the 64-bit asm() portions. An >> alternative would be single asm()s with a conditional branch over the >> (manua

Re: [Xen-devel] [PATCH 4/8] x86emul: support BMI2 insns

2017-01-13 Thread Andrew Cooper
On 13/01/17 15:32, Jan Beulich wrote: > Note that the adjustment to the mode_64bit() definition is so that we > can avoid "#ifdef __x86_64__" around the 64-bit asm() portions. An > alternative would be single asm()s with a conditional branch over the > (manually encoded) REX64 prefix. This presuma

[Xen-devel] [PATCH 4/8] x86emul: support BMI2 insns

2017-01-13 Thread Jan Beulich
Note that the adjustment to the mode_64bit() definition is so that we can avoid "#ifdef __x86_64__" around the 64-bit asm() portions. An alternative would be single asm()s with a conditional branch over the (manually encoded) REX64 prefix. Signed-off-by: Jan Beulich --- a/tools/tests/x86_emulato