]> xenbits.xensource.com Git - xen.git/commit
x86/emul: Fix the decoding of segment overrides in 64bit mode
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Oct 2017 14:30:49 +0000 (14:30 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 15 Feb 2018 11:08:27 +0000 (11:08 +0000)
commitb7dce29d9faf3597d009c853ed1fcbed9f7a7f68
treedcc6ffc81d5769cf3839a5131fc0a886f74afbc5
parenteb1d3a3f04b85d596862a4c9dcf796e67ab4dc09
x86/emul: Fix the decoding of segment overrides in 64bit mode

Explicit segment overides other than %fs and %gs are documented as ignored by
both Intel and AMD.

In practice, this means that:

 * Explicit uses of %ss don't actually yield #SS[0] for non-canonical
   memory references.
 * Explicit uses of %{e,c,d}s don't override %rbp/%rsp-based memory references
   to yield #GP[0] for non-canonical memory references.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_emulate/x86_emulate.c