x86emul: support LAR/LSL/VERR/VERW
authorJan Beulich <jbeulich@suse.com>
Wed, 4 Jan 2017 13:27:17 +0000 (14:27 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 4 Jan 2017 13:27:17 +0000 (14:27 +0100)
commit06a3b8cd7ad2586458555cbbbc4d36f17db2dbbc
treef6e6dfdf732da3ab08a5583658dbb446859e4ec3
parente03d4e867456cf4e288aee79b04da05d3626c242
x86emul: support LAR/LSL/VERR/VERW

This involves protmode_load_seg() accepting x86_seg_none as input, with
the meaning to
- suppress any exceptions other than #PF,
- not commit any state.

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