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.
6 * The V3VEE Project is a joint project between Northwestern University
7 * and the University of New Mexico. You can find out more at
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.
14 * Author: Jack Lange <jacklange@cs.pitt.edu>
16 * This is free software. You are permitted to use,
17 * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
22 #ifndef __VMM_NUMA_INTERFACE_H_
23 #define __VMM_NUMA_INTERFACE_H_
28 #include <palacios/vmm_types.h>
29 #include <palacios/vm_guest.h>
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);
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);
47 extern void V3_Init_NUMA(struct v3_numa_hooks * hooks);