X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm_lowlevel.S;h=11cc3b003157fbf35f9ff55457ae1b576c354769;hb=29056b18227989f85d7cc6ba4cbb3165e78be3b5;hp=ac11b36d19cf5cee70c7f3c68043405a7933a2e8;hpb=6ce5a308d167ac392c0f0ca66811f51580358191;p=palacios.git diff --git a/palacios/src/palacios/svm_lowlevel.S b/palacios/src/palacios/svm_lowlevel.S index ac11b36..11cc3b0 100644 --- a/palacios/src/palacios/svm_lowlevel.S +++ b/palacios/src/palacios/svm_lowlevel.S @@ -1,6 +1,5 @@ #; -*- fundamental -*- - .text .align 4 @@ -23,6 +22,7 @@ #ifdef __V3_32BIT__ +// Note that RAX is saved in the VMCB, so we don't touch it here #define Save_SVM_Registers(location) \ pushl %eax; \ movl location, %eax; \ @@ -32,11 +32,7 @@ movl $0, 24(%eax); \ movl %ebx, 32(%eax); \ movl %edx, 40(%eax); \ - movl %ecx, 48(%eax); \ - pushl %ebx; \ - movl 8(%esp), %ebx; \ - movl %ebx, 56(%eax); \ - popl %ebx; \ + movl %ecx, 48(%eax); \ popl %eax; @@ -90,6 +86,7 @@ v3_svm_launch: #elif __V3_64BIT__ +// Note that RAX is saved in the VMCB, so we don't touch it here #define Save_SVM_Registers(location) \ pushq %rax; \ movq location, %rax; \ @@ -100,10 +97,6 @@ v3_svm_launch: movq %rbx, 32(%rax); \ movq %rdx, 40(%rax); \ movq %rcx, 48(%rax); \ - pushq %rbx; \ - movq 16(%rsp), %rbx; \ - movq %rbx, 56(%rax); \ - popq %rbx; \ \ movq %r8, 64(%rax); \ movq %r9, 72(%rax); \