From: Gleb Natapov Date: Thu, 18 Mar 2010 13:20:23 +0000 (+0200) Subject: KVM: x86 emulator: fix in/out emulation. X-Git-Tag: v2.6.35-rc1~436^2~151 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf8f70bfe38b326bb80b10f76d6544f571040229;p=pandora-kernel.git KVM: x86 emulator: fix in/out emulation. in/out emulation is broken now. The breakage is different depending on where IO device resides. If it is in userspace emulator reports emulation failure since it incorrectly interprets kvm_emulate_pio() return value. If IO device is in the kernel emulation of 'in' will do nothing since kvm_emulate_pio() stores result directly into vcpu registers, so emulator will overwrite result of emulation during commit of shadowed register. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed