]> xenbits.xensource.com Git - xen.git/commit
x86: package up context switch hook pointers
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Feb 2017 14:51:03 +0000 (15:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Feb 2017 14:51:03 +0000 (15:51 +0100)
commitab914e04a62727b75782e401eaf2e8b72f717f61
tree37f9e12e9994a6e9526dbb79dc781971c6929b04
parent2f4d2198a9b3ba94c959330b5c94fe95917c364c
x86: package up context switch hook pointers

They're all solely dependent on guest type, so we don't need to repeat
all the same three pointers in every vCPU control structure. Instead use
static const structures, and store pointers to them in the domain
control structure.

Since touching it anyway, take the opportunity and expand
schedule_tail() in the only two places invoking it, allowing the macro
to be dropped.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/domain.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/current.h
xen/include/asm-x86/domain.h