From: Avi Kivity Date: Sun, 28 Oct 2007 14:34:25 +0000 (+0200) Subject: KVM: x86 emulator: don't depend on cr2 for mov abs emulation X-Git-Tag: v2.6.25-rc1~1138^2~184 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7e75a3db4ecd952e7a5562cea1b27007bf0c01c;p=pandora-kernel.git KVM: x86 emulator: don't depend on cr2 for mov abs emulation The 'mov abs' instruction family (opcodes 0xa0 - 0xa3) still depends on cr2 provided by the page fault handler. This is wrong for several reasons: - if an instruction accessed misaligned data that crosses a page boundary, and if the fault happened on the second page, cr2 will point at the second page, not the data itself. - if we're emulating in real mode, or due to a FlexPriority exit, there is no cr2 generated. So, this change adds decoding for this instruction form and drops reliance on cr2. Signed-off-by: Avi Kivity --- Reading git-diff-tree failed