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 host_pci passthrough PCI support
[palacios.git] / linux_usr / v3_ctrl.h
1 /* 
2  * V3 Control header file 
3  * (c) Jack lange, 2010
4  */
5
6 #ifndef _v3_ctrl_h
7 #define _v3_ctrl_h
8
9
10 /* Global Control IOCTLs */
11 #define V3_CREATE_GUEST 12
12 #define V3_FREE_GUEST 13
13
14 #define V3_ADD_MEMORY 50
15 #define V3_ADD_PCI_HW_DEV 55
16 #define V3_ADD_PCI_USER_DEV 56
17
18 /* VM Specific IOCTLs */
19
20 /* VM Specific ioctls */
21 #define V3_VM_CONSOLE_CONNECT 20
22 #define V3_VM_SERIAL_CONNECT 21
23 #define V3_VM_PAUSE 23
24 #define V3_VM_CONTINUE 24
25
26 #define V3_VM_LAUNCH 25
27 #define V3_VM_STOP 26
28 #define V3_VM_LOAD 27
29 #define V3_VM_SAVE 28
30 #define V3_VM_SIMULATE 29
31 #define V3_VM_INSPECT 30
32 #define V3_VM_DEBUG 31
33
34
35 #define V3_VM_MOVE_CORE 33
36
37 #define V3_VM_SEND    34
38 #define V3_VM_RECEIVE 35
39
40 #define V3_VM_FB_INPUT 257
41 #define V3_VM_FB_QUERY 258
42
43 #define V3_VM_HOST_DEV_CONNECT 10245
44 #define V3_VM_KSTREAM_USER_CONNECT 11245
45
46
47 static const char * v3_dev = "/dev/v3vee";
48
49 struct v3_guest_img {
50     unsigned long long size;
51     void * guest_data;
52     char name[128];
53 } __attribute__((packed));
54
55
56 struct v3_mem_region {
57     unsigned long long base_addr;
58     unsigned long long num_pages;
59 } __attribute__((packed));
60
61
62 struct v3_core_move_cmd{
63     unsigned short vcore_id;
64     unsigned short pcore_id;
65 } __attribute__((packed));
66
67
68 struct v3_debug_cmd {
69     unsigned int core; 
70     unsigned int cmd;
71 } __attribute__((packed));
72
73 struct v3_chkpt_info {
74     char store[128];
75     char url[256]; /* This might need to be bigger... */
76 } __attribute__((packed));
77
78
79
80 struct v3_hw_pci_dev {
81     char url[128];
82     unsigned int bus;
83     unsigned int dev;
84     unsigned int func;
85 } __attribute__((packed));
86
87
88 #endif