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
[palacios.git] / palacios / include / interfaces / vmm_numa.h
1 /* 
2  * This file is part of the Palacios Virtual Machine Monitor developed
3  * by the V3VEE Project with funding from the United States National 
4  * Science Foundation and the Department of Energy.  
5  *
6  * The V3VEE Project is a joint project between Northwestern University
7  * and the University of New Mexico.  You can find out more at 
8  * http://www.v3vee.org
9  *
10  * Copyright (c) 2013, Jack Lange <jacklange@cs.pitt.edu> 
11  * Copyright (c) 2013, The V3VEE Project <http://www.v3vee.org> 
12  * All rights reserved.
13  *
14  * Author: Jack Lange <jacklange@cs.pitt.edu>
15  *
16  * This is free software.  You are permitted to use,
17  * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
18  */
19  
20
21
22 #ifndef __VMM_NUMA_INTERFACE_H_
23 #define __VMM_NUMA_INTERFACE_H_
24
25
26 #ifdef __V3VEE__
27
28 #include <palacios/vmm_types.h>
29 #include <palacios/vm_guest.h>
30
31 int v3_numa_gpa_to_node(struct v3_vm_info * vm, addr_t gpa);
32 int v3_numa_hpa_to_node(addr_t hpa);
33 int v3_numa_cpu_to_node(uint32_t cpu);
34 int v3_numa_get_distance(uint32_t node1, uint32_t node2);
35
36 #endif
37
38
39 struct v3_numa_hooks {
40     int (*cpu_to_node)(int phys_cpu_id);
41     int (*phys_addr_to_node)(void * addr);
42     int (*get_distance)(int node1, int node2);
43 };
44
45
46
47 extern void V3_Init_NUMA(struct v3_numa_hooks * hooks);
48
49
50 #endif