x86emul: support FNSTENV and FNSAVE
authorJan Beulich <jbeulich@suse.com>
Fri, 29 May 2020 15:33:54 +0000 (17:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 29 May 2020 15:33:54 +0000 (17:33 +0200)
commit422a104ba3c84795a08fa107117d6d08e79ef106
tree6759bfa4a577d88cf5f5bd960cd5a25463e70e94
parentd273859687415f5b36dde976d43e04162aeadfdc
x86emul: support FNSTENV and FNSAVE

To avoid introducing another boolean into emulator state, the
rex_prefix field gets (ab)used to convey the real/VM86 vs protected mode
info (affecting structure layout, albeit not size) to x86_emul_blk().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/test_x86_emulator.c
tools/tests/x86_emulator/x86-emulate.h
xen/arch/x86/x86_emulate/x86_emulate.c