From: Laurent Vivier Date: Sun, 5 Aug 2007 07:36:40 +0000 (+0300) Subject: KVM: Cleanup string I/O instruction emulation X-Git-Tag: v2.6.24-rc1~1365^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e70669abd4e60dfea3ac1639848e20e2b8dd1255;p=pandora-kernel.git KVM: Cleanup string I/O instruction emulation Both vmx and svm decode the I/O instructions, and both botch the job, requiring the instruction prefixes to be fetched in order to completely decode the instruction. So, if we see a string I/O instruction, use the x86 emulator to decode it, as it already has all the prefix decoding machinery. This patch defines ins/outs opcodes in x86_emulate.c and calls emulate_instruction() from io_interception() (svm.c) and from handle_io() (vmx.c). It removes all vmx/svm prefix instruction decoders (get_addr_size(), io_get_override(), io_address(), get_io_count()) Signed-off-by: Laurent Vivier Signed-off-by: Avi Kivity --- Reading git-diff-tree failed