• L
    KVM: Cleanup string I/O instruction emulation · e70669ab
    Laurent Vivier 提交于
    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: NLaurent Vivier <Laurent.Vivier@bull.net>
    Signed-off-by: NAvi Kivity <avi@qumranet.com>
    e70669ab
svm.c 42.2 KB