From: Avi Kivity Date: Wed, 17 Nov 2010 13:28:21 +0000 (+0200) Subject: KVM: x86 emulator: preserve an operand's segment identity X-Git-Tag: v2.6.38-rc1~244^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90de84f50b425805bf7ddc430143ed2e224ebd8e;p=pandora-kernel.git KVM: x86 emulator: preserve an operand's segment identity Currently the x86 emulator converts the segment register associated with an operand into a segment base which is added into the operand address. This loss of information results in us not doing segment limit checks properly. Replace struct operand's addr.mem field by a segmented_address structure which holds both the effetive address and segment. This will allow us to do the limit check at the point of access. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed