VMX: streamline entry.S code
authorJan Beulich <jbeulich@suse.com>
Mon, 9 Sep 2013 08:20:52 +0000 (10:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Sep 2013 08:20:52 +0000 (10:20 +0200)
commit71eb3a65e305d2cde6a2fcdae186a7f333c9b778
tree670e86d09838d2c2a834cd3873e40c43bf580b56
parente008e9119d03852020b93e1d4da9a80ec1af9c75
VMX: streamline entry.S code

- move stuff easily/better done in C into C code
- re-arrange code paths so that no redundant GET_CURRENT() would remain
  on the fast paths
- move long latency operations earlier
- slightly defer disabling interrupts on the VM entry path
- use ENTRY() instead of open coding it

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/vmx/entry.S
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/hvm/hvm.h