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.


Have unregistered hypercalls fail to guest
Peter Dinda [Sun, 2 Aug 2015 23:15:28 +0000 (18:15 -0500)]
palacios/include/palacios/vmm_hypercall.h
palacios/src/palacios/vmm_hypercall.c

index 9b16618..58c73f9 100644 (file)
@@ -56,7 +56,7 @@ typedef enum {
 
     VNET_HEADER_QUERY_HCALL  =   0xe000,        // Get the current header for a src/dest pair
 
-    HVM_HCALL = 0xf000, 
+    HVM_HCALL = 0xf00d, 
 } hcall_id_t;
 
 
index 59e6484..21e6e96 100644 (file)
@@ -181,9 +181,10 @@ int v3_handle_hypercall(struct guest_info * info) {
     struct hypercall * hcall = get_hypercall(info->vm_info, hypercall_id);
 
     if (!hcall) {
-        PrintError(info->vm_info, info,  "Invalid Hypercall (%d(0x%x) not registered)\n", 
+        PrintError(info->vm_info, info,  "Invalid Hypercall (%d(0x%x) not registered) => ignored with rax=-1\n", 
                   hypercall_id, hypercall_id);
-       return -1;
+       info->vm_regs.rax=-1;
+       return 0;
     }
 
     if (hcall->hcall_fn(info, hypercall_id, hcall->priv_data) != 0) {