x86/hvm: Rename hvm_emulate_init() and hvm_emulate_prepare() for clarity
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Nov 2016 11:32:55 +0000 (11:32 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Nov 2016 17:18:31 +0000 (17:18 +0000)
commit7b5266abfdf7f842c49ce4a52d250e523bc0172d
treec8094005c3b5c92a8b2d2baecf582b7e733e64c7
parent45434adc3c94f5229744beaa12028aa23f63b9e7
x86/hvm: Rename hvm_emulate_init() and hvm_emulate_prepare() for clarity

 * Move hvm_emulate_init() to immediately after hvm_emulate_prepare(), as they
   are very closely related.
 * Rename hvm_emulate_prepare() to hvm_emulate_init_once() and
   hvm_emulate_init() to hvm_emulate_init_per_insn() to make it clearer how to
   and when to use them.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/io.c
xen/arch/x86/hvm/ioreq.c
xen/arch/x86/hvm/svm/emulate.c
xen/arch/x86/hvm/vmx/realmode.c
xen/include/asm-x86/hvm/emulate.h