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.


4d691b49e0f1c32aa0078898fde84cabd48e3768
[palacios.git] / palacios / include / palacios / svm_io.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 #ifndef __SVM_IO_H
21 #define __SVM_IO_H
22
23 #ifdef __V3VEE__
24
25 #include <palacios/vm_guest.h>
26 #include <palacios/vmcb.h>
27 #include <palacios/vmm.h>
28
29
30 struct svm_io_info {
31     uint_t type        : 1       PACKED;  // (0=out, 1=in)
32     uint_t rsvd        : 1       PACKED;  // Must be Zero
33     uint_t str         : 1       PACKED;  // string based io
34     uint_t rep         : 1       PACKED;  // repeated io
35     uint_t sz8         : 1       PACKED;  // 8 bit op size
36     uint_t sz16        : 1       PACKED;  // 16 bit op size
37     uint_t sz32        : 1       PACKED;  // 32 bit op size
38     uint_t addr16      : 1       PACKED;  // 16 bit addr
39     uint_t addr32      : 1       PACKED;  // 32 bit addr
40     uint_t addr64      : 1       PACKED;  // 64 bit addr
41     uint_t rsvd2       : 6       PACKED;  // Should be Zero
42     ushort_t port                PACKED;  // port number
43 };
44
45
46 int v3_handle_svm_io_in(struct guest_info * info);
47 int v3_handle_svm_io_ins(struct guest_info * info);
48 int v3_handle_svm_io_out(struct guest_info * info);
49 int v3_handle_svm_io_outs(struct guest_info * info);
50
51 #endif // !__V3VEE__
52
53
54 #endif