x86/ioemul: Misc improvements to ioport_emulate.c
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Jan 2018 12:42:59 +0000 (12:42 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 1 Feb 2018 10:54:10 +0000 (10:54 +0000)
commitf2f68439daccd7f5766d0c075a43598f626715aa
treec9baaab592b015bf075d9194d8e641f830d00e3e
parent98dc9606868a807206ad0f4c3a45046d4e0e1260
x86/ioemul: Misc improvements to ioport_emulate.c

Put the opcode into an array and use memcpy.  This allows the compiled code to
be written with two movs, rather than 10 mov $imm8's.  Also, drop trailing
whitespace in the file.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/ioport_emulate.c