Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Do we need to save and restore the guests GS/FS regs?
[palacios.git] / palacios / src / palacios / svm_lowlevel.S
index 151e54b..975fe98 100644 (file)
@@ -158,6 +158,8 @@ v3_svm_launch:
 
 // VMCB => RDI
 // vm_regs => RSI
+// ptr to fs => RDX
+// ptr to gs => RCX
 
 v3_svm_launch:
        pushf;
@@ -165,7 +167,20 @@ v3_svm_launch:
        push    %gs;
        PUSHA
 
-       pushq %rsi
+
+
+//     pushq   %rdx // fs
+//     pushq   %rcx // gs
+
+
+//     pushq   (%rdx)
+//     pop     %fs
+//     pushq   (%rcx)
+//     pop     %gs
+
+
+
+       pushq   %rsi
 
        movq    %rdi, %rax
        Restore_SVM_Registers(%rsi);
@@ -180,6 +195,18 @@ v3_svm_launch:
 
        addq $8, %rsp
 
+//     popq    %rcx
+//     popq    %rdx
+
+//     push    %fs
+//     popq    %rax
+//     movq    %rax, (%rdx)
+
+//     push    %gs
+//     popq    %rax
+//     movq    %rax, (%rcx)
+
+
        POPA
        pop     %gs;
        pop     %fs;