x86: refactor psr: L3 CAT: set value: implement cos id picking flow.
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:34:56 +0000 (12:34 +0200)
commitd63860f18b9ec87d751cea0bc6bd6cac6708a350
tree4e45167a2002ef4d455f4e5d2a3f67a3418e614b
parent890b4c31839c4ccbc8b7104869a1e210d87b6c99
x86: refactor psr: L3 CAT: set value: implement cos id picking flow.

Continue from previous patch:
'x86: refactor psr: L3 CAT: set value: implement cos finding flow.'

If fail to find a COS ID, we need pick a new COS ID for domain. Only COS ID
that ref[COS_ID] is 1 or 0 can be picked to input a new set feature values.

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