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.


Factoring of BIOS setup so that it can be reused during reset
[palacios.git] / palacios / src / palacios / vmm_config_class.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) 2008, Jack Lange <jarusl@cs.northwestern.edu> 
11  * Copyright (c) 2008, The V3VEE Project <http://www.v3vee.org> 
12  * All rights reserved.
13  *
14  * Author: Jack Lange <jarusl@cs.northwestern.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 #include <palacios/vmm_bios.h>
21
22 static int pre_config_pc_core(struct guest_info * info, v3_cfg_tree_t * cfg) { 
23
24     info->mem_mode = PHYSICAL_MEM;
25
26
27     info->vm_regs.rdi = 0;
28     info->vm_regs.rsi = 0;
29     info->vm_regs.rbp = 0;
30     info->vm_regs.rsp = 0;
31     info->vm_regs.rbx = 0;
32     info->vm_regs.rdx = 0;
33     info->vm_regs.rcx = 0;
34     info->vm_regs.rax = 0;
35
36     return 0;
37 }
38
39 static int post_config_pc_core(struct guest_info * info, v3_cfg_tree_t * cfg) { 
40
41     v3_print_mem_map(info->vm_info);
42     return 0;
43 }
44
45 static int post_config_pc(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) 
46
47     return v3_setup_bioses(vm,cfg);
48 }
49