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.


Direct paging changes
[palacios.git] / palacios / src / palacios / vmm_direct_paging.c
1 #include <palacios/vmm_direct_paging.h>
2
3 // Inline handler functions for each cpu mode
4 #include "vmm_direct_paging_32.h"
5
6 #include <palacios/vmm_paging.h>
7 #include <palacios/vmm.h>
8 #include <palacios/vm_guest_mem.h>
9 #include <palacios/vm_guest.h>
10
11 pde32_t * v3_create_direct_passthrough_pts(struct guest_info * info) {
12   v3_vm_cpu_mode_t mode = v3_get_cpu_mode(info);
13   switch(mode) {
14     case REAL:
15       //break;
16     case PROTECTED:
17       PrintError("ABC\n");
18       return v3_create_direct_passthrough_pts_32(info);
19     case PROTECTED_PAE:
20       break;
21     case LONG:
22       break;
23     case LONG_32_COMPAT:
24       break;
25     default:
26       PrintError("Unknown CPU Mode\n");
27       break;
28   }
29   return NULL;
30 }
31
32 int v3_handle_shadow_pagefault_physical_mode(struct guest_info * info, addr_t fault_addr, pf_error_t error_code) {
33   v3_vm_cpu_mode_t mode = v3_get_cpu_mode(info);
34   switch(mode) {
35     case REAL:
36       // break;
37     case PROTECTED:
38       return v3_handle_shadow_pagefault_physical_mode_32(info, fault_addr, error_code);
39     case PROTECTED_PAE:
40       break;
41     case LONG:
42       break;
43     case LONG_32_COMPAT:
44       break;
45     default:
46       PrintError("Unknown CPU Mode\n");
47       break;
48   }
49   return -1;
50 }