commit | 5b38ab877e5bd6c6564f2f23f25e0c3d4768728a | [log] [tgz] |
---|---|---|
author | Nadav Amit <namit@cs.technion.ac.il> | Sun Nov 02 11:54:41 2014 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Nov 07 15:44:01 2014 +0100 |
tree | 707c85940c630b7d0aa61eb0cfe2c4fef9d2c381 | |
parent | 4114c27d450bef228be9c7b0c40a888e18a3a636 [diff] |
KVM: x86: decode_modrm does not regard modrm correctly In one occassion, decode_modrm uses the rm field after it is extended with REX.B to determine the addressing mode. Doing so causes it not to read the offset for rip-relative addressing with REX.B=1. This patch moves the fetch where we already mask REX.B away instead. Signed-off-by: Nadav Amit <namit@cs.technion.ac.il> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>