x86/spec_ctrl: Rename bits of infrastructure to avoid NATIVE and VMEXIT
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 30 Apr 2018 13:20:23 +0000 (14:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 May 2018 17:41:33 +0000 (18:41 +0100)
commit1a58f06a8d354d60ba5d72c5ba382490a0d2b496
treebf1a27de7b20b148d65f43fae39c2e431ec858c5
parent39f6fcb75444b7ee91eee456bb7229de50f6045c
x86/spec_ctrl: Rename bits of infrastructure to avoid NATIVE and VMEXIT

In hindsight, using NATIVE and VMEXIT as naming terminology was not clever.
A future change wants to split SPEC_CTRL_EXIT_TO_GUEST into PV and HVM
specific implementations, and using VMEXIT as a term is completely wrong.

Take the opportunity to fix some stale documentation in spec_ctrl_asm.h.  The
IST helpers were missing from the large comment block, and since
SPEC_CTRL_ENTRY_FROM_INTR_IST was introduced, we've gained a new piece of
functionality which currently depends on the fine grain control, which exists
in lieu of livepatching.  Note this in the comment.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
(cherry picked from commit d9822b8a38114e96e4516dc998f4055249364d5d)

Gbp-Pq: Name x86spec_ctrl-rename-bits-of-infrastructu.patch
xen/arch/x86/hvm/svm/entry.S
xen/arch/x86/hvm/vmx/entry.S
xen/arch/x86/spec_ctrl.c
xen/arch/x86/x86_64/compat/entry.S
xen/arch/x86/x86_64/entry.S
xen/include/asm-x86/cpufeature.h
xen/include/asm-x86/spec_ctrl_asm.h