x86: refactor psr: L3 CAT: implement get value 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:33:24 +0000 (12:33 +0200)
commit03f30dc193c8847a1f8bdef15661d7fd00fbba86
treeb97436e0e9b82aea80dc965643c4c9eeb7bf2c30
parentdba2b703962b4446cd7db1877caba0d43b87d2a1
x86: refactor psr: L3 CAT: implement get value flow.

There is an interface in user space to show feature value of
domains.

This patch implements get value flow in hypervisor.

It also changes domctl interface to make it more general.

With this patch, 'psr-cat-show' can work for L3 CAT but not for
L3 code/data which is implemented in CDP related patches.

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