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.


Basic HVM data structures and functions
[palacios.git] / palacios / include / palacios / vmm_hvm.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) 2015, The V3VEE Project <http://www.v3vee.org> 
11  * All rights reserved.
12  *
13  * Author: Peter Dinda <pdinda@northwestern.edu>
14  *
15  * This is free software.  You are permitted to use,
16  * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
17  */
18
19
20 #ifndef __VMM_HVM_H
21 #define __VMM_HVM_H
22
23
24 #ifdef __V3VEE__ 
25
26 #include <palacios/vmm_types.h>
27
28 struct v3_vm_hvm {
29     uint8_t   is_hvm;
30     uint32_t  first_hrt_core;
31     uint64_t  first_hrt_gpa;
32     struct v3_cfg_file *hrt_file;
33 };
34
35 struct v3_core_hvm {
36     uint8_t   is_hrt;
37 };
38
39 struct v3_xml;
40
41 int v3_init_hvm();
42 int v3_deinit_hvm();
43
44 int v3_init_hvm_vm(struct v3_vm_info *vm, struct v3_xml *config);
45 int v3_deinit_hvm_vm(struct v3_vm_info *vm);
46
47
48 int v3_init_hvm_core(struct guest_info *core);
49 int v3_deinit_hvm_core(struct guest_info *core);
50
51
52 uint64_t v3_get_hvm_ros_memsize(struct v3_vm_info *vm);
53 uint64_t v3_get_hvm_hrt_memsize(struct v3_vm_info *vm);
54 int      v3_is_hvm_ros_mem_gpa(struct v3_vm_info *vm, addr_t gpa);
55 int      v3_is_hvm_hrt_mem_gpa(struct v3_vm_info *vm, addr_t gpa);
56
57 uint32_t v3_get_hvm_ros_cores(struct v3_vm_info *vm);
58 uint32_t v3_get_hvm_hrt_cores(struct v3_vm_info *vm);
59 int      v3_is_hvm_ros_core(struct guest_info *core);
60 int      v3_is_hvm_hrt_core(struct guest_info *core);
61
62
63 #endif /* ! __V3VEE__ */
64
65
66 #endif