x86: refactor psr: L3 CAT: implement Domain init/free and schedule flows.
authorYi Sun <yi.y.sun@linux.intel.com>
Tue, 1 Aug 2017 09:04:00 +0000 (11:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 3 Aug 2017 10:32:37 +0000 (12:32 +0200)
commit1edd4fa1978a5b1af793ca015ad7caef6a142e23
tree9270c43585047adddea70938881fc31b1fd53f58
parent5fc1c4badbf163ec15184fa16ef08e72b59bb688
x86: refactor psr: L3 CAT: implement Domain init/free and schedule flows.

This patch implements the Domain init/free and schedule flows.
- When domain init, its psr resource should be allocated.
- When domain free, its psr resource should be freed too.
- When domain is scheduled, its COS ID on the socket should be
  set into ASSOC register to make corresponding COS MSR value
  work.

Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domain.c
xen/arch/x86/psr.c
xen/include/asm-x86/psr.h