]> xenbits.xensource.com Git - people/pauldu/xen.git/commit
x86/HVM: limit writes to incoming TSS during task switch
authorJan Beulich <jbeulich@suse.com>
Wed, 23 Nov 2016 14:25:35 +0000 (15:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Nov 2016 14:25:35 +0000 (15:25 +0100)
commitdb153db08846d038a6fd23fee7719dfee5d27ffc
treec9fee6a595b7294711ee45ad3cc775cc3bed4b56
parente5745b86e6e114f0e5b15bf67ed8d37a3d019f66
x86/HVM: limit writes to incoming TSS during task switch

The only field modified (and even that conditionally) is the back link.
Write only that field, and only when it actually has been written to.

Take the opportunity and also ditch the pointless initializer from the
"tss" local variable, which gets completely filled anyway by reading
from guest memory.

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