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.


added symbiotic interface
[palacios.git] / palacios / include / palacios / vmm_sym_iface.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
21 #ifndef __VMM_SYM_IFACE_H__
22 #define __VMM_SYM_IFACE_H__
23
24 #ifdef __V3VEE__
25
26
27
28
29
30 struct v3_sym_interface {
31     uint64_t magic;
32
33
34     union {
35         uint32_t feature_flags;
36         struct {
37             uint_t cur_proc_valid         : 1;
38             uint_t proc_list_valid        : 1;
39         } __attribute__((packed));
40     } __attribute__((packed));
41
42     addr_t current_proc;
43     addr_t proc_list;
44
45     uint8_t pci_pt_map[256 / 8];
46 } __attribute__((packed));
47
48
49 struct v3_sym_state {
50     
51     struct v3_sym_interface * sym_page;
52     addr_t sym_page_pa;
53
54     uint_t active;
55     uint64_t guest_pg_addr;
56
57 };
58
59 int v3_init_sym_iface(struct guest_info * info);
60
61
62 int v3_sym_map_pci_passthrough(struct guest_info * info, uint_t bus, uint_t dev, uint_t fn);
63 int v3_sym_unmap_pci_passthrough(struct guest_info * info, uint_t bus, uint_t dev, uint_t fn);
64
65
66
67 #endif
68
69 #endif