x86/HVM: use x86emul_write_xcr()
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Mar 2018 09:42:31 +0000 (10:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Mar 2018 09:42:31 +0000 (10:42 +0100)
commit3025581f3ad70c153db830d0d80377c294033f63
tree1070481134d3194ba97e4ebc7e1ed850196b6a8c
parent0e8147c4650c97c46cdd8be225c93a729a12d307
x86/HVM: use x86emul_write_xcr()

...  instead of directly calling handle_xsetbv(), to make use of the
additional checking there.

Also don't call hvm_monitor_crX(XCR0, ...) for indexes other than zero
anymore.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/x86_emulate.c