Xen Test Framework
|
All memory operands operate through a segment.
Several factors control which segment is actually used.
This test uses the fact that %ss can be distinguished from other segments because it yields #SS[0] on a segmentation fault, rather than #GP[0]. We construct a scenario in userspace which intends to suffer a segmentation based fault.
Tests are run for each explicit segment override prefix as well as no prefix, and for each memory operand encoding of a base register, as well as an absolute operand. The resulting fault is used to check that the expected segment is being used.