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.


Linux kernel compatability enhancements (through 3.19)
[palacios.git] / palacios / src / gears / ext_syscall_hijack.c
index a531176..c31bb59 100644 (file)
@@ -103,7 +103,7 @@ static void print_syscall (uint8_t is64, struct guest_info * core) {
 int v3_syscall_handler (struct guest_info * core, uint8_t vector, void * priv_data) {
  
     uint_t syscall_nr = (uint_t) core->vm_regs.rax;
-    int err = 0, ret = 0;
+    int err = 0;
 
     struct v3_syscall_hook * hook = syscall_hooks[syscall_nr];
 
@@ -133,6 +133,7 @@ int v3_syscall_handler (struct guest_info * core, uint8_t vector, void * priv_da
         if (list_empty(&(injects->code_inject_list))) {
             return 0;
         } else {
+           int ret;
 
             inject = (struct v3_code_inject_info*) list_first_entry(
                         &(injects->code_inject_list), 
@@ -338,8 +339,8 @@ static int deinit_syscall_hijack (struct v3_vm_info * vm, void * priv_data) {
 
 static struct v3_extension_impl syscall_impl = {
     .name = "syscall_intercept",
-    .init = init_syscall_hijack,
-    .deinit = deinit_syscall_hijack,
+    .vm_init = init_syscall_hijack,
+    .vm_deinit = deinit_syscall_hijack,
     .core_init = init_syscall_hijack_core,
     .core_deinit = NULL,
     .on_entry = NULL,