x86: add scheduling support for Intel CAT
authorChao Peng <chao.p.peng@linux.intel.com>
Tue, 7 Jul 2015 13:47:18 +0000 (15:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jul 2015 13:47:18 +0000 (15:47 +0200)
commit4cbbe62a92434242c973cc56108d695ea6f053e7
treed81d6247b4c950f02945c2f1fbc6b35bbc6c9cf8
parente3c56e1142c35e17f072d6f3c23678e45cb7a746
x86: add scheduling support for Intel CAT

On context switch, write the the domain's Class of Service(COS) to MSR
IA32_PQR_ASSOC, to notify hardware to use the new COS.

For performance reason, the COS mask for current cpu is also cached in
the local per-CPU variable.

Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/psr.c