x86: add COS information for each domain
authorChao Peng <chao.p.peng@linux.intel.com>
Tue, 7 Jul 2015 13:45:08 +0000 (15:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jul 2015 13:45:08 +0000 (15:45 +0200)
commit4bc9843a83c10baa8d908d214185d2ee6d422dab
treec373dabea5781d9645263159ac9fad58b7c6d7c6
parent39a24082b81c5eefbdcf98b4f78b96685664d56e
x86: add COS information for each domain

In Xen's implementation, the CAT enforcement granularity is per domain.
Due to the length of CBM and the number of COS may be socket-different,
each domain has COS ID for each socket. The domain get COS=0 by default
and at runtime its COS is then allocated dynamically when user specifies
a CBM for the domain.

Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c
xen/arch/x86/psr.c
xen/include/asm-x86/domain.h
xen/include/asm-x86/psr.h