]> xenbits.xensource.com Git - xen.git/commit
x86/HVM: correct error code writing during task switch
authorJan Beulich <jbeulich@suse.com>
Wed, 23 Nov 2016 14:26:51 +0000 (15:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Nov 2016 14:26:51 +0000 (15:26 +0100)
commit13a8f97d421ba9e90ba9d69a137bd29c35383297
tree530770b816dd7047cadd0e6205370ffd30fbc7e0
parentbac3e8e0f50aaf01eaf064b5201f69759fa87803
x86/HVM: correct error code writing during task switch

Whether to write 32 or just 16 bits depends on the D bit of the target
CS. The width of the stack pointer to use depends on the B bit of the
target SS.

Also avoid using the no-fault copying routine.

Finally avoid using yet another struct segment_register variable here.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/hvm.c