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/vmm_types.h>
26 #include <palacios/vmm_list.h>
27 #include <palacios/vmm_string.h>
35 struct list_head dev_list;
38 struct list_head io_hooks;
41 struct list_head mem_hooks;
47 // Registration of devices
50 // The following device manager functions should only be called
51 // when the guest is stopped
54 int v3_attach_device(struct guest_info *vm, struct vm_device * dev);
55 int v3_unattach_device(struct vm_device *dev);
65 int (*read)(ushort_t port, void * dst, uint_t length, struct vm_device * dev);
66 int (*write)(ushort_t port, void * src, uint_t length, struct vm_device * dev);
68 struct vm_device * dev;
70 // Do not touch anything below this
72 struct list_head dev_list;
73 struct list_head mgr_list;
80 struct vm_device * dev;
82 // Do not touch anything below this
83 struct list_head dev_list;
84 struct list_head mgr_list;
88 int v3_init_dev_mgr(struct guest_info * info);
89 int v3_dev_mgr_deinit(struct guest_info * info);
91 void PrintDebugDevMgr(struct guest_info * info);
92 void PrintDebugDev(struct vm_device * dev);
93 void PrintDebugDevIO(struct vm_device * dev);
94 void PrintDebugDevMgrIO(struct vmm_dev_mgr * mgr);