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.


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