]> xenbits.xensource.com Git - xen.git/commit
x86: don't expose XSAVES capability to PV guests
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Jan 2015 11:47:56 +0000 (12:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Jan 2015 11:47:56 +0000 (12:47 +0100)
commit8d050ed1097ce5f4bf6a1d6806fb1e3471976adb
tree470272481d1a00008dfa89ae09ac454a736d1655
parentd9e66702fd9e1cf7a8e7fa3b28879cd6f779bac5
x86: don't expose XSAVES capability to PV guests

As done by the recent Linux commit b65d6e17fe ("kvm: x86: mask out
XSAVES") for KVM, we should also mask out XSAVES from what PV guests
get to see as long as we don't emulate accesses to MSR_IA32_XSS.

Actually, go beyond that: Just like for leaf 7, switch from
blacklisting to whitelisting, i.e. only allow XSAVEOPT and XSAVEC for
the time being. And do these overrides consistently for both Dom0 and
DomU-s.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/traps.c
xen/arch/x86/xstate.c
xen/include/asm-x86/xstate.h