x86/svm: Remove list functionality from __get_instruction_length_* infrastructure
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 13 Dec 2018 17:01:24 +0000 (09:01 -0800)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Feb 2019 11:25:32 +0000 (11:25 +0000)
commitd178114c596bd0e55d727a50e08351fd54b7578e
tree1e30ccceaab67b538322787670b5cf6d5815fd2f
parentf5d7d370400613a01ca1c9e38d7ce9b1faea32f3
x86/svm: Remove list functionality from __get_instruction_length_* infrastructure

The existing __get_instruction_length_from_list() has a single user
which uses the list functionality.  That user however should be looking
specifically for INVD or WBINVD, as reported by the vmexit exit reason.

Modify svm_vmexit_do_invalidate_cache() to ask for the correct
instruction, and drop all list functionality from the helper.

Take the opportunity to rename it to svm_get_insn_len(), and drop the
IOIO length handling which has never been used.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Brian Woods <brian.woods@amd.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/hvm/svm/emulate.c
xen/arch/x86/hvm/svm/nestedsvm.c
xen/arch/x86/hvm/svm/svm.c
xen/include/asm-x86/hvm/svm/emulate.h