SVM: streamline entry.S code
authorJan Beulich <jbeulich@suse.com>
Mon, 9 Sep 2013 08:24:21 +0000 (10:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Sep 2013 08:24:21 +0000 (10:24 +0200)
commit110b2d6e8aa2a35d8f9d8efc3f3bfda3c49a3855
tree1ddecd4b87385a0abc1979df173f545b9bab2462
parentcfd54835e6e8a28c743dc7d67c662d151ab4923a
SVM: streamline entry.S code

- fix a bogus "test" with zero immediate
- 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 global interrupts on the VM entry path

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/svm/entry.S
xen/arch/x86/hvm/svm/svm.c
xen/include/asm-x86/asm_defns.h