[PATCH 6/6] KVM: x86: Emulator does not calculate address correctly

2014-09-30 Thread Nadav Amit
In long-mode, when the address size is 4 bytes, the linear address is not truncated as the emulator mistakenly does. Instead, the offset within the segment (the ea field) should be truncated according to the address size. As Intel SDM says: "In 64-bit mode, the effective address components are ad

Re: [PATCH 6/6] KVM: x86: Emulator does not calculate address correctly

2014-10-01 Thread Radim Krčmář
2014-09-30 20:49+0300, Nadav Amit: > In long-mode, when the address size is 4 bytes, the linear address is not > truncated as the emulator mistakenly does. Instead, the offset within the > segment (the ea field) should be truncated according to the address size. > > As Intel SDM says: "In 64-bit