mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
REX.R is ignored when considering segment register operands, and needs masking out first. While fixing this, reorder the user segments in x86_segment to match SReg3 encoding. This avoids needing a translation table between hardware ordering and Xen's ordering. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> VMX: fix realmode emulation SReg handling Commit0888d36bb2("x86/emul: Correct the decoding of SReg3 operands") overlooked three places where x86_seg_cs was assumed to be zero. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> master commit:0888d36bb2master date: 2016-10-26 14:04:12 +0100 master commit:a62511bf14master date: 2016-10-31 08:57:47 +0100