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.
6 * The V3VEE Project is a joint project between Northwestern University
7 * and the University of New Mexico. You can find out more at
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.
14 * Author: Jack Lange <jarusl@cs.northwestern.edu>
16 * This is free software. You are permitted to use,
17 * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
25 #include <palacios/vm_guest.h>
26 #include <palacios/vmcb.h>
27 #include <palacios/vmm.h>
31 uint_t type : 1; // (0=out, 1=in)
32 uint_t rsvd : 1; // Must be Zero
33 uint_t str : 1; // string based io
34 uint_t rep : 1; // repeated io
35 uint_t sz8 : 1; // 8 bit op size
36 uint_t sz16 : 1; // 16 bit op size
37 uint_t sz32 : 1; // 32 bit op size
38 uint_t addr16 : 1; // 16 bit addr
39 uint_t addr32 : 1; // 32 bit addr
40 uint_t addr64 : 1; // 64 bit addr
41 uint_t rsvd2 : 6; // Should be Zero
42 uint16_t port; // port number
43 } __attribute__((packed));
46 int v3_init_svm_io_map(struct v3_vm_info * vm);
47 int v3_deinit_svm_io_map(struct v3_vm_info * vm);
49 int v3_handle_svm_io_in(struct guest_info * info, struct svm_io_info * io_info);
50 int v3_handle_svm_io_ins(struct guest_info * info, struct svm_io_info * io_info);
51 int v3_handle_svm_io_out(struct guest_info * info, struct svm_io_info * io_info);
52 int v3_handle_svm_io_outs(struct guest_info * info, struct svm_io_info * io_info);